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

Unified Diff: chrome/browser/translate/translate_browsertest.cc

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/translate/translate_browsertest.cc
diff --git a/chrome/browser/translate/translate_browsertest.cc b/chrome/browser/translate/translate_browsertest.cc
index 247a344c7e2c1a0deb41ea8dd7f7e20569869f14..9c41ebc0c45051175b50fec9128935ca0c41e528 100644
--- a/chrome/browser/translate/translate_browsertest.cc
+++ b/chrome/browser/translate/translate_browsertest.cc
@@ -75,7 +75,7 @@ class TranslateBrowserTest : public InProcessBrowserTest {
return https_server_.GetURL(prefix + path);
}
- TranslateInfoBarDelegate* GetExistingTranslateInfoBarDelegate() {
+ translate::TranslateInfoBarDelegate* GetExistingTranslateInfoBarDelegate() {
if (!infobar_service_) {
content::WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
@@ -87,7 +87,7 @@ class TranslateBrowserTest : public InProcessBrowserTest {
return NULL;
}
- TranslateInfoBarDelegate* delegate = NULL;
+ translate::TranslateInfoBarDelegate* delegate = NULL;
for (size_t i = 0; i < infobar_service_->infobar_count(); ++i) {
// Check if the shown infobar is a confirm infobar coming from the
// |kTranslateSecurityOrigin| flag specified in SetUpCommandLine().
@@ -98,9 +98,10 @@ class TranslateBrowserTest : public InProcessBrowserTest {
continue;
}
- TranslateInfoBarDelegate* translate =
- infobar_service_->infobar_at(i)->delegate()->
- AsTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ infobar_service_->infobar_at(i)
+ ->delegate()
+ ->AsTranslateInfoBarDelegate();
if (translate) {
EXPECT_FALSE(delegate) << "multiple infobars are shown unexpectedly";
delegate = translate;
@@ -131,7 +132,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, TranslateInIsolatedWorld) {
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup infobar observer.
@@ -174,7 +176,7 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, TranslateInIsolatedWorld) {
"} } } };\n"
"cr.googleTranslate.onTranslateElementLoad();\n";
net::TestURLFetcher* fetcher =
- factory.GetFetcherByID(TranslateScript::kFetcherId);
+ factory.GetFetcherByID(translate::TranslateScript::kFetcherId);
ASSERT_TRUE(fetcher);
net::URLRequestStatus status;
status.set_status(net::URLRequestStatus::SUCCESS);
@@ -197,7 +199,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, IgnoreRefreshMetaTag) {
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup page title observer.
@@ -230,7 +233,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest,
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup page title observer.
@@ -262,7 +266,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, IgnoreRefreshMetaTagAtOnload) {
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup page title observer.
@@ -294,7 +299,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocation) {
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup page title observer.
@@ -326,7 +332,8 @@ IN_PROC_BROWSER_TEST_F(TranslateBrowserTest, UpdateLocationAtOnload) {
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
// Check if there is no Translate infobar.
- TranslateInfoBarDelegate* translate = GetExistingTranslateInfoBarDelegate();
+ translate::TranslateInfoBarDelegate* translate =
+ GetExistingTranslateInfoBarDelegate();
EXPECT_FALSE(translate);
// Setup page title observer.

Powered by Google App Engine
This is Rietveld 408576698