summaryrefslogtreecommitdiffstats
path: root/chrome_elf
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-06 15:09:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-06 22:10:42 +0000
commitd97eede0d9eb25ebffc918c8ebfcf9a9d9703a88 (patch)
treee83dc87df21704e72e63423961e82b02244ac015 /chrome_elf
parent7d47f7a394e09e1a6e3e546932051649f185d47e (diff)
downloadchromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.zip
chromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.tar.gz
chromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.tar.bz2
Move MatchPattern to its own header and the base namespace.
BUG= Review URL: https://codereview.chromium.org/1226673003 Cr-Commit-Position: refs/heads/master@{#337488}
Diffstat (limited to 'chrome_elf')
-rw-r--r--chrome_elf/elf_imports_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_elf/elf_imports_unittest.cc b/chrome_elf/elf_imports_unittest.cc
index dda1bb1..941c641 100644
--- a/chrome_elf/elf_imports_unittest.cc
+++ b/chrome_elf/elf_imports_unittest.cc
@@ -14,6 +14,7 @@
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/path_service.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "base/win/pe_image.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -76,7 +77,7 @@ TEST_F(ELFImportsTest, ChromeElfSanityCheck) {
for (; it != elf_imports.end(); it++) {
bool match = false;
for (int i = 0; i < arraysize(kValidFilePatterns); ++i) {
- if (MatchPattern(*it, kValidFilePatterns[i]))
+ if (base::MatchPattern(*it, kValidFilePatterns[i]))
match = true;
}
ASSERT_TRUE(match) << "Illegal import in chrome_elf.dll: " << *it;