| OLD | NEW | 
|     1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |     1 // Copyright (c) 2012 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/sync/test/integration/sync_test.h" |     5 #include "chrome/browser/sync/test/integration/sync_test.h" | 
|     6  |     6  | 
|     7 #include <stddef.h> |     7 #include <stddef.h> | 
|     8 #include <stdint.h> |     8 #include <stdint.h> | 
|     9  |     9  | 
|    10 #include <limits> |    10 #include <limits> | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    63 #include "components/invalidation/impl/invalidation_switches.h" |    63 #include "components/invalidation/impl/invalidation_switches.h" | 
|    64 #include "components/invalidation/impl/p2p_invalidation_service.h" |    64 #include "components/invalidation/impl/p2p_invalidation_service.h" | 
|    65 #include "components/invalidation/impl/p2p_invalidator.h" |    65 #include "components/invalidation/impl/p2p_invalidator.h" | 
|    66 #include "components/invalidation/impl/profile_invalidation_provider.h" |    66 #include "components/invalidation/impl/profile_invalidation_provider.h" | 
|    67 #include "components/invalidation/public/invalidation_service.h" |    67 #include "components/invalidation/public/invalidation_service.h" | 
|    68 #include "components/keyed_service/core/keyed_service.h" |    68 #include "components/keyed_service/core/keyed_service.h" | 
|    69 #include "components/os_crypt/os_crypt_mocker.h" |    69 #include "components/os_crypt/os_crypt_mocker.h" | 
|    70 #include "components/search_engines/template_url_service.h" |    70 #include "components/search_engines/template_url_service.h" | 
|    71 #include "components/signin/core/browser/profile_identity_provider.h" |    71 #include "components/signin/core/browser/profile_identity_provider.h" | 
|    72 #include "components/signin/core/browser/signin_manager.h" |    72 #include "components/signin/core/browser/signin_manager.h" | 
 |    73 #include "components/sync/engine_impl/sync_scheduler_impl.h" | 
 |    74 #include "components/sync/protocol/sync.pb.h" | 
 |    75 #include "components/sync/test/fake_server/fake_server.h" | 
 |    76 #include "components/sync/test/fake_server/fake_server_network_resources.h" | 
|    73 #include "components/sync_driver/invalidation_helper.h" |    77 #include "components/sync_driver/invalidation_helper.h" | 
|    74 #include "components/sync_driver/sync_driver_switches.h" |    78 #include "components/sync_driver/sync_driver_switches.h" | 
|    75 #include "content/public/browser/navigation_entry.h" |    79 #include "content/public/browser/navigation_entry.h" | 
|    76 #include "content/public/browser/notification_service.h" |    80 #include "content/public/browser/notification_service.h" | 
|    77 #include "content/public/browser/web_contents.h" |    81 #include "content/public/browser/web_contents.h" | 
|    78 #include "content/public/test/test_browser_thread.h" |    82 #include "content/public/test/test_browser_thread.h" | 
|    79 #include "google_apis/gaia/gaia_urls.h" |    83 #include "google_apis/gaia/gaia_urls.h" | 
|    80 #include "net/base/escape.h" |    84 #include "net/base/escape.h" | 
|    81 #include "net/base/load_flags.h" |    85 #include "net/base/load_flags.h" | 
|    82 #include "net/base/network_change_notifier.h" |    86 #include "net/base/network_change_notifier.h" | 
|    83 #include "net/base/port_util.h" |    87 #include "net/base/port_util.h" | 
|    84 #include "net/url_request/test_url_fetcher_factory.h" |    88 #include "net/url_request/test_url_fetcher_factory.h" | 
|    85 #include "net/url_request/url_fetcher.h" |    89 #include "net/url_request/url_fetcher.h" | 
|    86 #include "net/url_request/url_fetcher_delegate.h" |    90 #include "net/url_request/url_fetcher_delegate.h" | 
|    87 #include "sync/engine/sync_scheduler_impl.h" |  | 
|    88 #include "sync/protocol/sync.pb.h" |  | 
|    89 #include "sync/test/fake_server/fake_server.h" |  | 
|    90 #include "sync/test/fake_server/fake_server_network_resources.h" |  | 
|    91 #include "url/gurl.h" |    91 #include "url/gurl.h" | 
|    92  |    92  | 
|    93 #if defined(OS_CHROMEOS) |    93 #if defined(OS_CHROMEOS) | 
|    94 #include "chromeos/chromeos_switches.h" |    94 #include "chromeos/chromeos_switches.h" | 
|    95 #endif |    95 #endif | 
|    96  |    96  | 
|    97 using content::BrowserThread; |    97 using content::BrowserThread; | 
|    98  |    98  | 
|    99 namespace switches { |    99 namespace switches { | 
|   100 const char kPasswordFileForTest[] = "password-file-for-test"; |   100 const char kPasswordFileForTest[] = "password-file-for-test"; | 
| (...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1131  |  1131  | 
|  1132 void SyncTest::TriggerSyncForModelTypes(int index, |  1132 void SyncTest::TriggerSyncForModelTypes(int index, | 
|  1133                                         syncer::ModelTypeSet model_types) { |  1133                                         syncer::ModelTypeSet model_types) { | 
|  1134   GetSyncService(index)->TriggerRefresh(model_types); |  1134   GetSyncService(index)->TriggerRefresh(model_types); | 
|  1135 } |  1135 } | 
|  1136  |  1136  | 
|  1137 void SyncTest::SetPreexistingPreferencesFileContents( |  1137 void SyncTest::SetPreexistingPreferencesFileContents( | 
|  1138     const std::string& contents) { |  1138     const std::string& contents) { | 
|  1139   preexisting_preferences_file_contents_ = contents; |  1139   preexisting_preferences_file_contents_ = contents; | 
|  1140 } |  1140 } | 
| OLD | NEW |