| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/search_engines/template_url_fetcher.h" | 33 #include "chrome/browser/search_engines/template_url_fetcher.h" |
| 34 #include "chrome/browser/search_engines/template_url_model.h" | 34 #include "chrome/browser/search_engines/template_url_model.h" |
| 35 #include "chrome/browser/sessions/session_service.h" | 35 #include "chrome/browser/sessions/session_service.h" |
| 36 #include "chrome/browser/sync/profile_sync_service_mock.h" | 36 #include "chrome/browser/sync/profile_sync_service_mock.h" |
| 37 #include "chrome/browser/themes/browser_theme_provider.h" | 37 #include "chrome/browser/themes/browser_theme_provider.h" |
| 38 #include "chrome/browser/ui/find_bar/find_bar_state.h" | 38 #include "chrome/browser/ui/find_bar/find_bar_state.h" |
| 39 #include "chrome/common/chrome_constants.h" | 39 #include "chrome/common/chrome_constants.h" |
| 40 #include "chrome/common/net/url_request_context_getter.h" | 40 #include "chrome/common/net/url_request_context_getter.h" |
| 41 #include "chrome/common/notification_service.h" | 41 #include "chrome/common/notification_service.h" |
| 42 #include "chrome/common/url_constants.h" | 42 #include "chrome/common/url_constants.h" |
| 43 #include "chrome/test/test_url_request_context_getter.h" |
| 43 #include "chrome/test/testing_pref_service.h" | 44 #include "chrome/test/testing_pref_service.h" |
| 44 #include "chrome/test/test_url_request_context_getter.h" | |
| 45 #include "chrome/test/ui_test_utils.h" | 45 #include "chrome/test/ui_test_utils.h" |
| 46 #include "net/base/cookie_monster.h" | 46 #include "net/base/cookie_monster.h" |
| 47 #include "net/url_request/url_request_context.h" | 47 #include "net/url_request/url_request_context.h" |
| 48 #include "net/url_request/url_request_unittest.h" | 48 #include "net/url_request/url_request_unittest.h" |
| 49 #include "testing/gmock/include/gmock/gmock.h" | 49 #include "testing/gmock/include/gmock/gmock.h" |
| 50 #include "webkit/database/database_tracker.h" | 50 #include "webkit/database/database_tracker.h" |
| 51 | 51 |
| 52 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 52 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) |
| 53 #include "chrome/browser/gtk/gtk_theme_provider.h" | 53 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 using base::Time; | 56 using base::Time; |
| 57 using testing::NiceMock; | 57 using testing::NiceMock; |
| 58 using testing::Return; | 58 using testing::Return; |
| 59 | 59 |
| 60 namespace { | 60 namespace { |
| 61 | 61 |
| 62 // Task used to make sure history has finished processing a request. Intended | 62 // Task used to make sure history has finished processing a request. Intended |
| 63 // for use with BlockUntilHistoryProcessesPendingRequests. | 63 // for use with BlockUntilHistoryProcessesPendingRequests. |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 } | 517 } |
| 518 return profile_sync_service_.get(); | 518 return profile_sync_service_.get(); |
| 519 } | 519 } |
| 520 | 520 |
| 521 void TestingProfile::DestroyWebDataService() { | 521 void TestingProfile::DestroyWebDataService() { |
| 522 if (!web_data_service_.get()) | 522 if (!web_data_service_.get()) |
| 523 return; | 523 return; |
| 524 | 524 |
| 525 web_data_service_->Shutdown(); | 525 web_data_service_->Shutdown(); |
| 526 } | 526 } |
| OLD | NEW |