| 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 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); | 39 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); |
| 40 | 40 |
| 41 // Called when a nudge comes in. | 41 // Called when a nudge comes in. |
| 42 void SimulateSyncCycleCompletedInitialSyncEnded( | 42 void SimulateSyncCycleCompletedInitialSyncEnded( |
| 43 const tracked_objects::Location&); | 43 const tracked_objects::Location&); |
| 44 | 44 |
| 45 virtual sync_api::HttpPostProviderFactory* MakeHttpBridgeFactory( | 45 virtual sync_api::HttpPostProviderFactory* MakeHttpBridgeFactory( |
| 46 const scoped_refptr<net::URLRequestContextGetter>& getter) OVERRIDE; | 46 const scoped_refptr<net::URLRequestContextGetter>& getter) OVERRIDE; |
| 47 | 47 |
| 48 virtual void StartConfiguration(Callback0::Type* callback) OVERRIDE; | 48 virtual void StartConfiguration(bool cleanup_disabled_types) OVERRIDE; |
| 49 | 49 |
| 50 static void SetDefaultExpectationsForWorkerCreation(ProfileMock* profile); | 50 static void SetDefaultExpectationsForWorkerCreation(ProfileMock* profile); |
| 51 | 51 |
| 52 static void SetHistoryServiceExpectations(ProfileMock* profile); | 52 static void SetHistoryServiceExpectations(ProfileMock* profile); |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 virtual void InitCore(const Core::DoInitializeOptions& options) OVERRIDE; | 55 virtual void InitCore(const Core::DoInitializeOptions& options) OVERRIDE; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 bool synchronous_init_; | 58 bool synchronous_init_; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 Task* initial_condition_setup_task_; | 114 Task* initial_condition_setup_task_; |
| 115 bool set_initial_sync_ended_on_init_; | 115 bool set_initial_sync_ended_on_init_; |
| 116 | 116 |
| 117 bool fail_initial_download_; | 117 bool fail_initial_download_; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 | 120 |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 122 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |