| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/callback.h" | 6 #include "base/callback.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" | 24 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" |
| 25 #include "chrome/browser/sync/profile_sync_service.h" | 25 #include "chrome/browser/sync/profile_sync_service.h" |
| 26 #include "chrome/browser/sync/profile_sync_test_util.h" | 26 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 27 #include "chrome/common/channel_info.h" | 27 #include "chrome/common/channel_info.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
| 30 #include "chrome/grit/generated_resources.h" | 30 #include "chrome/grit/generated_resources.h" |
| 31 #include "chrome/test/base/testing_browser_process.h" | 31 #include "chrome/test/base/testing_browser_process.h" |
| 32 #include "chrome/test/base/testing_profile.h" | 32 #include "chrome/test/base/testing_profile.h" |
| 33 #include "chrome/test/base/testing_profile_manager.h" | 33 #include "chrome/test/base/testing_profile_manager.h" |
| 34 #include "components/browser_sync/common/browser_sync_switches.h" |
| 34 #include "components/invalidation/impl/profile_invalidation_provider.h" | 35 #include "components/invalidation/impl/profile_invalidation_provider.h" |
| 35 #include "components/invalidation/public/invalidation_service.h" | 36 #include "components/invalidation/public/invalidation_service.h" |
| 36 #include "components/signin/core/browser/account_tracker_service.h" | 37 #include "components/signin/core/browser/account_tracker_service.h" |
| 37 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" | 38 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" |
| 38 #include "components/signin/core/browser/signin_manager.h" | 39 #include "components/signin/core/browser/signin_manager.h" |
| 39 #include "components/signin/core/browser/signin_manager.h" | 40 #include "components/signin/core/browser/signin_manager.h" |
| 40 #include "components/sync_driver/data_type_manager.h" | 41 #include "components/sync_driver/data_type_manager.h" |
| 41 #include "components/sync_driver/data_type_manager_observer.h" | 42 #include "components/sync_driver/data_type_manager_observer.h" |
| 42 #include "components/sync_driver/fake_data_type_controller.h" | 43 #include "components/sync_driver/fake_data_type_controller.h" |
| 43 #include "components/sync_driver/fake_sync_client.h" | 44 #include "components/sync_driver/fake_sync_client.h" |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 InitializeForNthSync(); | 1024 InitializeForNthSync(); |
| 1024 | 1025 |
| 1025 syncer::SyncProtocolError client_cmd; | 1026 syncer::SyncProtocolError client_cmd; |
| 1026 client_cmd.action = syncer::RESET_LOCAL_SYNC_DATA; | 1027 client_cmd.action = syncer::RESET_LOCAL_SYNC_DATA; |
| 1027 service()->OnActionableError(client_cmd); | 1028 service()->OnActionableError(client_cmd); |
| 1028 EXPECT_EQ(ProfileSyncService::SYNC, service()->backend_mode()); | 1029 EXPECT_EQ(ProfileSyncService::SYNC, service()->backend_mode()); |
| 1029 } | 1030 } |
| 1030 | 1031 |
| 1031 } // namespace | 1032 } // namespace |
| 1032 } // namespace browser_sync | 1033 } // namespace browser_sync |
| OLD | NEW |