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

Unified Diff: chrome/renderer/translate/translate_helper_browsertest.cc

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Run translate unittests on iOS Created 7 years, 2 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/renderer/translate/translate_helper.cc ('k') | components/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/translate/translate_helper_browsertest.cc
diff --git a/chrome/renderer/translate/translate_helper_browsertest.cc b/chrome/renderer/translate/translate_helper_browsertest.cc
index aba761039c3c793505d070e288f2f43a7d7bb931..63a922c14b8286a75e43c80b7ab1e4796e76758b 100644
--- a/chrome/renderer/translate/translate_helper_browsertest.cc
+++ b/chrome/renderer/translate/translate_helper_browsertest.cc
@@ -3,10 +3,10 @@
// found in the LICENSE file.
#include "base/time/time.h"
-#include "chrome/common/chrome_constants.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/translate/translate_helper.h"
#include "chrome/test/base/chrome_render_view_test.h"
+#include "components/translate/common/translate_constants.h"
#include "content/public/renderer/render_view.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -233,7 +233,7 @@ TEST_F(TranslateHelperBrowserTest, UndefinedSourceLang) {
ExecuteScriptAndGetDoubleResult(_)).Times(3);
translate_helper_->TranslatePage(view_->GetPageId(),
- chrome::kUnknownLanguageCode, "fr",
+ translate::kUnknownLanguageCode, "fr",
std::string());
base::MessageLoop::current()->RunUntilIdle();
« no previous file with comments | « chrome/renderer/translate/translate_helper.cc ('k') | components/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698