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

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

Issue 290343003: Fix browser test to work with dynamic CLD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cld_browsertest
Patch Set: Add call to Init() to workaround gtest macro issues Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a297d5b9a44771349e7d1f5bd1d11d5b0097e842..952d8243fd4b457dc260da1d6c7e7219398cab07 100644
--- a/chrome/browser/translate/translate_manager_browsertest.cc
+++ b/chrome/browser/translate/translate_manager_browsertest.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/prefs/session_startup_pref.h"
+#include "chrome/browser/translate/translate_browser_test_utils.h"
#include "chrome/browser/translate/translate_tab_helper.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -26,6 +27,8 @@ class TranslateManagerBrowserTest : public InProcessBrowserTest {};
// settings.
IN_PROC_BROWSER_TEST_F(TranslateManagerBrowserTest,
MAYBE_PRE_TranslateSessionRestore) {
+ test::ScopedCLDDynamicDataHarness dynamic_data_scope;
+ ASSERT_NO_FATAL_FAILURE(dynamic_data_scope.Init());
SessionStartupPref pref(SessionStartupPref::LAST);
SessionStartupPref::SetStartupPref(browser()->profile(), pref);
@@ -58,6 +61,8 @@ IN_PROC_BROWSER_TEST_F(TranslateManagerBrowserTest,
#endif
IN_PROC_BROWSER_TEST_F(TranslateManagerBrowserTest,
MAYBE_TranslateSessionRestore) {
+ test::ScopedCLDDynamicDataHarness dynamic_data_scope;
+ ASSERT_NO_FATAL_FAILURE(dynamic_data_scope.Init());
content::WebContents* current_web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
content::Source<content::WebContents> source(current_web_contents);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698