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

Unified Diff: chrome/browser/search_engines/template_url_service_test_util.cc

Issue 11348135: Fix TemplateURLFetcherTest.* for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « build/android/gtest_filter/unit_tests_disabled ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_service_test_util.cc
diff --git a/chrome/browser/search_engines/template_url_service_test_util.cc b/chrome/browser/search_engines/template_url_service_test_util.cc
index 356b05ae19555a99fcd11638e0dab05221234b59..41f1ebe3ba0ef446276bc872736041f23cfef1e8 100644
--- a/chrome/browser/search_engines/template_url_service_test_util.cc
+++ b/chrome/browser/search_engines/template_url_service_test_util.cc
@@ -23,6 +23,10 @@
#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
+#endif
+
using content::BrowserThread;
namespace {
@@ -114,6 +118,9 @@ void TemplateURLServiceTestingProfile::SetUp() {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
FilePath path = temp_dir_.path().AppendASCII("TestDataService.db");
+#if defined(OS_ANDROID)
+ TemplateURLPrepopulateData::InitCountryCode("US");
sky 2012/11/19 22:50:01 This seems like a more fundamental problem. Should
michaelbai 2012/11/19 23:05:38 Did you mean TestingProfile? On 2012/11/19 22:50:
Peter Kasting 2012/11/20 04:06:13 Yes, but really this is just wrong anyway. No tes
michaelbai 2012/11/20 19:03:33 It looks like the original author want to be warne
+#endif
service_ = new WebDataService;
ASSERT_TRUE(service_->InitWithPath(path));
}
« no previous file with comments | « build/android/gtest_filter/unit_tests_disabled ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698