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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc

Issue 355853002: Componentize TemplateURLPrepopulateData, DefaultSearchManager and DefaultSearchPolicyHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing comma in gyp Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h" 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/test/values_test_util.h" 19 #include "base/test/values_test_util.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "chrome/app/chrome_command_ids.h" 21 #include "chrome/app/chrome_command_ids.h"
22 #include "chrome/browser/chrome_notification_types.h" 22 #include "chrome/browser/chrome_notification_types.h"
23 #include "chrome/browser/extensions/extension_service.h" 23 #include "chrome/browser/extensions/extension_service.h"
24 #include "chrome/browser/extensions/extension_service_test_base.h" 24 #include "chrome/browser/extensions/extension_service_test_base.h"
25 #include "chrome/browser/google/google_brand.h" 25 #include "chrome/browser/google/google_brand.h"
26 #include "chrome/browser/profile_resetter/brandcoded_default_settings.h" 26 #include "chrome/browser/profile_resetter/brandcoded_default_settings.h"
27 #include "chrome/browser/profile_resetter/profile_reset_global_error.h" 27 #include "chrome/browser/profile_resetter/profile_reset_global_error.h"
28 #include "chrome/browser/search_engines/default_search_manager.h"
29 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
30 #include "chrome/browser/search_engines/template_url_service.h" 28 #include "chrome/browser/search_engines/template_url_service.h"
31 #include "chrome/browser/search_engines/template_url_service_factory.h" 29 #include "chrome/browser/search_engines/template_url_service_factory.h"
32 #include "chrome/browser/search_engines/template_url_service_test_util.h" 30 #include "chrome/browser/search_engines/template_url_service_test_util.h"
33 #include "chrome/browser/ui/global_error/global_error.h" 31 #include "chrome/browser/ui/global_error/global_error.h"
34 #include "chrome/browser/ui/global_error/global_error_service.h" 32 #include "chrome/browser/ui/global_error/global_error_service.h"
35 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 33 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
36 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
37 #include "chrome/test/base/testing_pref_service_syncable.h" 35 #include "chrome/test/base/testing_pref_service_syncable.h"
38 #include "chrome/test/base/testing_profile.h" 36 #include "chrome/test/base/testing_profile.h"
37 #include "components/search_engines/default_search_manager.h"
38 #include "components/search_engines/template_url_prepopulate_data.h"
39 #include "content/public/browser/notification_service.h" 39 #include "content/public/browser/notification_service.h"
40 #include "net/http/http_response_headers.h" 40 #include "net/http/http_response_headers.h"
41 #include "net/url_request/test_url_fetcher_factory.h" 41 #include "net/url_request/test_url_fetcher_factory.h"
42 #include "testing/gmock/include/gmock/gmock.h" 42 #include "testing/gmock/include/gmock/gmock.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
44 44
45 #if defined(OS_WIN) 45 #if defined(OS_WIN)
46 #include "chrome/browser/enumerate_modules_model_win.h" 46 #include "chrome/browser/enumerate_modules_model_win.h"
47 #endif 47 #endif
48 48
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 if (ProfileResetGlobalError::IsSupportedOnPlatform()) 596 if (ProfileResetGlobalError::IsSupportedOnPlatform())
597 ExpectResetPromptState(true /*active*/); 597 ExpectResetPromptState(true /*active*/);
598 else 598 else
599 ExpectResetPromptState(false /*active*/); 599 ExpectResetPromptState(false /*active*/);
600 resetter_delegate()->DismissPrompt(); 600 resetter_delegate()->DismissPrompt();
601 ExpectResetPromptState(false /*active*/); 601 ExpectResetPromptState(false /*active*/);
602 resetter_delegate()->DismissPrompt(); 602 resetter_delegate()->DismissPrompt();
603 } 603 }
604 604
605 } // namespace 605 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698