Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: components/browser_sync/profile_sync_service_mock.h

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (Closed)
Patch Set: Rebase. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 explicit ProfileSyncServiceMock(InitParams init_params); 26 explicit ProfileSyncServiceMock(InitParams init_params);
27 // The second constructor defers to the first one. Use it when you need to 27 // The second constructor defers to the first one. Use it when you need to
28 // create a StrictMock or NiceMock of ProfileSyncServiceMock, because those 28 // create a StrictMock or NiceMock of ProfileSyncServiceMock, because those
29 // template classes cannot handle the input class having constructors with 29 // template classes cannot handle the input class having constructors with
30 // arguments passed by value. Otherwise use the constructor above for cleaner 30 // arguments passed by value. Otherwise use the constructor above for cleaner
31 // code. 31 // code.
32 explicit ProfileSyncServiceMock(InitParams* init_params); 32 explicit ProfileSyncServiceMock(InitParams* init_params);
33 33
34 virtual ~ProfileSyncServiceMock(); 34 virtual ~ProfileSyncServiceMock();
35 35
36 MOCK_METHOD4( 36 MOCK_METHOD5(
37 OnEngineInitialized, 37 OnEngineInitialized,
38 void(const syncer::WeakHandle<syncer::JsBackend>&, 38 void(syncer::ModelTypeSet initial_types,
39 const syncer::WeakHandle<syncer::JsBackend>&,
39 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, 40 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&,
40 const std::string&, 41 const std::string&,
41 bool)); 42 bool));
42 MOCK_METHOD0(OnSyncCycleCompleted, void()); 43 MOCK_METHOD0(OnSyncCycleCompleted, void());
43 MOCK_METHOD2(OnUserChoseDatatypes, 44 MOCK_METHOD2(OnUserChoseDatatypes,
44 void(bool sync_everything, syncer::ModelTypeSet chosen_types)); 45 void(bool sync_everything, syncer::ModelTypeSet chosen_types));
45 46
46 MOCK_METHOD2(OnUnrecoverableError, 47 MOCK_METHOD2(OnUnrecoverableError,
47 void(const tracked_objects::Location& location, 48 void(const tracked_objects::Location& location,
48 const std::string& message)); 49 const std::string& message));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 97 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
97 MOCK_METHOD2(SetEncryptionPassphrase, 98 MOCK_METHOD2(SetEncryptionPassphrase,
98 void(const std::string& passphrase, PassphraseType type)); 99 void(const std::string& passphrase, PassphraseType type));
99 100
100 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); 101 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void());
101 }; 102 };
102 103
103 } // namespace browser_sync 104 } // namespace browser_sync
104 105
105 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 106 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698