| Index: chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc
|
| diff --git a/chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc b/chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc
|
| index d1f69fdad4dbc93f153534bea5c88488a00f2029..f58c98c000b8a73ebcc9fe5fa7f02cde73efc842 100644
|
| --- a/chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc
|
| +++ b/chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/test/base/testing_pref_service_syncable.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| +#include "content/public/test/test_browser_thread_bundle.h"
|
| #include "grit/generated_resources.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| @@ -75,6 +76,7 @@ const int kCountryIds[] = {
|
| // Verifies the set of prepopulate data doesn't contain entries with duplicate
|
| // ids.
|
| TEST(TemplateURLPrepopulateDataTest, UniqueIDs) {
|
| + content::TestBrowserThreadBundle thread_bundle;
|
| TestingProfile profile;
|
| for (size_t i = 0; i < arraysize(kCountryIds); ++i) {
|
| profile.GetPrefs()->SetInteger(prefs::kCountryIDAtInstall, kCountryIds[i]);
|
| @@ -94,6 +96,7 @@ TEST(TemplateURLPrepopulateDataTest, UniqueIDs) {
|
| // Verifies that default search providers from the preferences file
|
| // override the built-in ones.
|
| TEST(TemplateURLPrepopulateDataTest, ProvidersFromPrefs) {
|
| + content::TestBrowserThreadBundle thread_bundle;
|
| TestingProfile profile;
|
| TestingPrefServiceSyncable* prefs = profile.GetTestingPrefService();
|
| prefs->SetUserPref(prefs::kSearchProviderOverridesVersion,
|
| @@ -183,6 +186,7 @@ TEST(TemplateURLPrepopulateDataTest, ProvidersFromPrefs) {
|
| }
|
|
|
| TEST(TemplateURLPrepopulateDataTest, ClearProvidersFromPrefs) {
|
| + content::TestBrowserThreadBundle thread_bundle;
|
| TestingProfile profile;
|
| TestingPrefServiceSyncable* prefs = profile.GetTestingPrefService();
|
| prefs->SetUserPref(prefs::kSearchProviderOverridesVersion,
|
| @@ -236,6 +240,7 @@ TEST(TemplateURLPrepopulateDataTest, ProvidersFromPrepopulated) {
|
| // Use United States.
|
| CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| switches::kCountry, "US");
|
| + content::TestBrowserThreadBundle thread_bundle;
|
| TestingProfile profile;
|
| ScopedVector<TemplateURL> t_urls;
|
| size_t default_index;
|
|
|