| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/test/testing_profile.h" | 5 #include "chrome/test/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
| 15 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 15 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
| 16 #include "chrome/browser/bookmarks/bookmark_model.h" | 16 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 17 #include "chrome/browser/content_settings/host_content_settings_map.h" | 17 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 18 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 18 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 19 #include "chrome/browser/extensions/extension_pref_value_map.h" | 19 #include "chrome/browser/extensions/extension_pref_value_map.h" |
| 20 #include "chrome/browser/extensions/extension_service.h" | 20 #include "chrome/browser/extensions/extension_service.h" |
| 21 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 21 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
| 22 #include "chrome/browser/favicon_service.h" | 22 #include "chrome/browser/favicon_service.h" |
| 23 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 23 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
| 24 #include "chrome/browser/geolocation/geolocation_permission_context.h" |
| 24 #include "chrome/browser/history/history.h" | 25 #include "chrome/browser/history/history.h" |
| 25 #include "chrome/browser/history/history_backend.h" | 26 #include "chrome/browser/history/history_backend.h" |
| 26 #include "chrome/browser/history/top_sites.h" | 27 #include "chrome/browser/history/top_sites.h" |
| 27 #include "chrome/browser/net/gaia/token_service.h" | 28 #include "chrome/browser/net/gaia/token_service.h" |
| 28 #include "chrome/browser/net/pref_proxy_config_service.h" | 29 #include "chrome/browser/net/pref_proxy_config_service.h" |
| 29 #include "chrome/browser/notifications/desktop_notification_service.h" | 30 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 30 #include "chrome/browser/prefs/browser_prefs.h" | 31 #include "chrome/browser/prefs/browser_prefs.h" |
| 31 #include "chrome/browser/prefs/testing_pref_store.h" | 32 #include "chrome/browser/prefs/testing_pref_store.h" |
| 32 #include "chrome/browser/search_engines/template_url_fetcher.h" | 33 #include "chrome/browser/search_engines/template_url_fetcher.h" |
| 33 #include "chrome/browser/search_engines/template_url_model.h" | 34 #include "chrome/browser/search_engines/template_url_model.h" |
| 34 #include "chrome/browser/sessions/session_service.h" | 35 #include "chrome/browser/sessions/session_service.h" |
| 35 #include "chrome/browser/sync/profile_sync_service_mock.h" | 36 #include "chrome/browser/sync/profile_sync_service_mock.h" |
| 36 #include "chrome/browser/themes/browser_theme_provider.h" | 37 #include "chrome/browser/themes/browser_theme_provider.h" |
| 37 #include "chrome/browser/ui/find_bar/find_bar_state.h" | 38 #include "chrome/browser/ui/find_bar/find_bar_state.h" |
| 38 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 39 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 39 #include "chrome/browser/ui/webui/ntp_resource_cache.h" | 40 #include "chrome/browser/ui/webui/ntp_resource_cache.h" |
| 40 #include "chrome/common/chrome_constants.h" | 41 #include "chrome/common/chrome_constants.h" |
| 41 #include "chrome/common/net/url_request_context_getter.h" | 42 #include "chrome/common/net/url_request_context_getter.h" |
| 42 #include "chrome/common/notification_service.h" | 43 #include "chrome/common/notification_service.h" |
| 43 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
| 44 #include "chrome/test/test_url_request_context_getter.h" | 45 #include "chrome/test/test_url_request_context_getter.h" |
| 45 #include "chrome/test/testing_pref_service.h" | 46 #include "chrome/test/testing_pref_service.h" |
| 46 #include "chrome/test/ui_test_utils.h" | 47 #include "chrome/test/ui_test_utils.h" |
| 47 #include "content/browser/browser_thread.h" | 48 #include "content/browser/browser_thread.h" |
| 48 #include "content/browser/geolocation/geolocation_permission_context.h" | |
| 49 #include "content/browser/in_process_webkit/webkit_context.h" | 49 #include "content/browser/in_process_webkit/webkit_context.h" |
| 50 #include "net/base/cookie_monster.h" | 50 #include "net/base/cookie_monster.h" |
| 51 #include "net/url_request/url_request_context.h" | 51 #include "net/url_request/url_request_context.h" |
| 52 #include "net/url_request/url_request_test_util.h" | 52 #include "net/url_request/url_request_test_util.h" |
| 53 #include "testing/gmock/include/gmock/gmock.h" | 53 #include "testing/gmock/include/gmock/gmock.h" |
| 54 #include "webkit/database/database_tracker.h" | 54 #include "webkit/database/database_tracker.h" |
| 55 | 55 |
| 56 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 56 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) |
| 57 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" | 57 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 58 #endif | 58 #endif |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 } | 806 } |
| 807 | 807 |
| 808 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) | 808 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) |
| 809 : original_profile_(profile) {} | 809 : original_profile_(profile) {} |
| 810 | 810 |
| 811 DerivedTestingProfile::~DerivedTestingProfile() {} | 811 DerivedTestingProfile::~DerivedTestingProfile() {} |
| 812 | 812 |
| 813 ProfileId DerivedTestingProfile::GetRuntimeId() { | 813 ProfileId DerivedTestingProfile::GetRuntimeId() { |
| 814 return original_profile_->GetRuntimeId(); | 814 return original_profile_->GetRuntimeId(); |
| 815 } | 815 } |
| OLD | NEW |