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

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

Issue 7744039: Switch ChromeTestSuite to the same convention as ContentTestSuite: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixing Created 9 years, 4 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_manager_browsertest.cc
diff --git a/chrome/browser/translate/translate_manager_browsertest.cc b/chrome/browser/translate/translate_manager_browsertest.cc
index da6dbf90f4eedb4f5ac1ef0c0f8cb9aff922ad66..0900f3f82a7c92d5f99b3f92172acfbb19b68af8 100644
--- a/chrome/browser/translate/translate_manager_browsertest.cc
+++ b/chrome/browser/translate/translate_manager_browsertest.cc
@@ -869,9 +869,8 @@ TEST_F(TranslateManagerTest, ServerReportsUnsupportedLanguage) {
// Tests that no translate infobar is shown when Chrome is in a language that
// the translate server does not support.
TEST_F(TranslateManagerTest, UnsupportedUILanguage) {
- TestingBrowserProcess* browser_process = testing_browser_process_.get();
- std::string original_lang = browser_process->GetApplicationLocale();
- browser_process->SetApplicationLocale("qbz");
+ std::string original_lang = g_browser_process->GetApplicationLocale();
+ g_browser_process->SetApplicationLocale("qbz");
// Make sure that the accept language list only contains unsupported languages
Profile* profile = Profile::FromBrowserContext(contents()->browser_context());
@@ -885,15 +884,14 @@ TEST_F(TranslateManagerTest, UnsupportedUILanguage) {
// No info-bar should be shown.
EXPECT_TRUE(GetTranslateInfoBar() == NULL);
- browser_process->SetApplicationLocale(original_lang);
+ g_browser_process->SetApplicationLocale(original_lang);
}
// Tests that the first supported accept language is selected
TEST_F(TranslateManagerTest, TranslateAcceptLanguage) {
// Set locate to non-existant language
- TestingBrowserProcess* browser_process = testing_browser_process_.get();
- std::string original_lang = browser_process->GetApplicationLocale();
- browser_process->SetApplicationLocale("qbz");
+ std::string original_lang = g_browser_process->GetApplicationLocale();
+ g_browser_process->SetApplicationLocale("qbz");
// Set Qbz and French as the only accepted languages
Profile* profile = Profile::FromBrowserContext(contents()->browser_context());

Powered by Google App Engine
This is Rietveld 408576698