summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-25 10:37:47 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-25 17:57:49 +0000
commita9deea931ed7c7526bb32e30c54d91763f8026e0 (patch)
tree32833dca01bfdf09cb5a8618bf992dacb7024c7c
parent6302288dec6111120749754ba8ec2d249b63404b (diff)
downloadpdfium-a9deea931ed7c7526bb32e30c54d91763f8026e0.tar.xz
Rename fx_basic_memmgr.cpp to fx_memory.cpp to match .h naming
Change-Id: I769d7f2c52b0a0db36be6145bfb626c126a58be9 Reviewed-on: https://pdfium-review.googlesource.com/4480 Commit-Queue: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
-rw-r--r--BUILD.gn4
-rw-r--r--core/fxcrt/fx_memory.cpp (renamed from core/fxcrt/fx_basic_memmgr.cpp)4
-rw-r--r--core/fxcrt/fx_memory_unittest.cpp (renamed from core/fxcrt/fx_basic_memmgr_unittest.cpp)3
3 files changed, 6 insertions, 5 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 3b48762407..e513b37e05 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -767,7 +767,6 @@ static_library("fxcrt") {
"core/fxcrt/fx_basic.h",
"core/fxcrt/fx_basic_buffer.cpp",
"core/fxcrt/fx_basic_gcc.cpp",
- "core/fxcrt/fx_basic_memmgr.cpp",
"core/fxcrt/fx_basic_utf.cpp",
"core/fxcrt/fx_basic_util.cpp",
"core/fxcrt/fx_bidi.cpp",
@@ -777,6 +776,7 @@ static_library("fxcrt") {
"core/fxcrt/fx_coordinates.h",
"core/fxcrt/fx_extension.cpp",
"core/fxcrt/fx_extension.h",
+ "core/fxcrt/fx_memory.cpp",
"core/fxcrt/fx_memory.h",
"core/fxcrt/fx_safe_types.h",
"core/fxcrt/fx_stream.cpp",
@@ -1870,10 +1870,10 @@ test("pdfium_unittests") {
"core/fxcrt/cfx_weak_ptr_unittest.cpp",
"core/fxcrt/cfx_widestring_unittest.cpp",
"core/fxcrt/fx_basic_gcc_unittest.cpp",
- "core/fxcrt/fx_basic_memmgr_unittest.cpp",
"core/fxcrt/fx_basic_util_unittest.cpp",
"core/fxcrt/fx_bidi_unittest.cpp",
"core/fxcrt/fx_extension_unittest.cpp",
+ "core/fxcrt/fx_memory_unittest.cpp",
"core/fxcrt/fx_system_unittest.cpp",
"core/fxge/dib/cstretchengine_unittest.cpp",
"fpdfsdk/fpdfdoc_unittest.cpp",
diff --git a/core/fxcrt/fx_basic_memmgr.cpp b/core/fxcrt/fx_memory.cpp
index 75bc2bc1f1..2807139aa2 100644
--- a/core/fxcrt/fx_basic_memmgr.cpp
+++ b/core/fxcrt/fx_memory.cpp
@@ -4,10 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include <stdlib.h> // For abort().
-
#include "core/fxcrt/fx_memory.h"
+#include <stdlib.h> // For abort().
+
pdfium::base::PartitionAllocatorGeneric gArrayBufferPartitionAllocator;
pdfium::base::PartitionAllocatorGeneric gStringPartitionAllocator;
diff --git a/core/fxcrt/fx_basic_memmgr_unittest.cpp b/core/fxcrt/fx_memory_unittest.cpp
index fdffd98f19..ae15db2a72 100644
--- a/core/fxcrt/fx_basic_memmgr_unittest.cpp
+++ b/core/fxcrt/fx_memory_unittest.cpp
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "core/fxcrt/fx_memory.h"
+
#include <limits>
-#include "core/fxcrt/fx_memory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {