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

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

Issue 145023015: Introduce TranslateService and TranslateDownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest Created 6 years, 11 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 | « chrome/browser/translate/translate_script.cc ('k') | chrome/browser/translate/translate_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_script_unittest.cc
diff --git a/chrome/browser/translate/translate_script_unittest.cc b/chrome/browser/translate/translate_script_unittest.cc
index 991f9de112ca7ff5f50d6d6d99970f86300eee7a..fe6781810bc1a603d560cf240885e8fbac691675 100644
--- a/chrome/browser/translate/translate_script_unittest.cc
+++ b/chrome/browser/translate/translate_script_unittest.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/strings/stringprintf.h"
#include "chrome/common/chrome_switches.h"
+#include "components/translate/core/browser/translate_download_manager.h"
#include "net/base/load_flags.h"
#include "net/base/url_util.h"
#include "net/http/http_request_headers.h"
@@ -23,6 +24,7 @@ class TranslateScriptTest : public testing::Test {
virtual void SetUp() {
script_.reset(new TranslateScript);
DCHECK(script_.get());
+ TranslateDownloadManager::GetInstance()->set_application_locale("en");
}
virtual void TearDown() {
« no previous file with comments | « chrome/browser/translate/translate_script.cc ('k') | chrome/browser/translate/translate_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698