Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4995)

Unified Diff: chrome/browser/extensions/api/sessions/sessions_apitest.cc

Issue 1226673003: Move MatchPattern to its own header and the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/sessions/sessions_apitest.cc
diff --git a/chrome/browser/extensions/api/sessions/sessions_apitest.cc b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
index ccf77bcecfde4914f5732f9c3e429d58d3303001..90ebba80a6259eb86377a3700d4270ba8aed71a8 100644
--- a/chrome/browser/extensions/api/sessions/sessions_apitest.cc
+++ b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/path_service.h"
+#include "base/strings/pattern.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/api/tabs/tabs_api.h"
#include "chrome/browser/extensions/extension_apitest.h"
@@ -347,7 +348,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionSessionsTest,
IN_PROC_BROWSER_TEST_F(ExtensionSessionsTest, RestoreForeignSessionInvalidId) {
CreateSessionModels();
- EXPECT_TRUE(MatchPattern(utils::RunFunctionAndReturnError(
+ EXPECT_TRUE(base::MatchPattern(utils::RunFunctionAndReturnError(
CreateFunction<SessionsRestoreFunction>(true).get(),
"[\"tag3.0\"]",
browser_), "Invalid session id: \"tag3.0\"."));
@@ -356,7 +357,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionSessionsTest, RestoreForeignSessionInvalidId) {
IN_PROC_BROWSER_TEST_F(ExtensionSessionsTest, RestoreInIncognito) {
CreateSessionModels();
- EXPECT_TRUE(MatchPattern(utils::RunFunctionAndReturnError(
+ EXPECT_TRUE(base::MatchPattern(utils::RunFunctionAndReturnError(
CreateFunction<SessionsRestoreFunction>(true).get(),
"[\"1\"]",
CreateIncognitoBrowser()),
« no previous file with comments | « chrome/browser/extensions/api/management/management_api_browsertest.cc ('k') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698