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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lei comments Created 9 years, 10 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 22 matching lines...) Expand all
33 : public SyncBackendHost, public JsBackend { 33 : public SyncBackendHost, public JsBackend {
34 public: 34 public:
35 // |synchronous_init| causes initialization to block until the syncapi has 35 // |synchronous_init| causes initialization to block until the syncapi has
36 // completed setting itself up and called us back. 36 // completed setting itself up and called us back.
37 SyncBackendHostForProfileSyncTest( 37 SyncBackendHostForProfileSyncTest(
38 Profile* profile, 38 Profile* profile,
39 int num_expected_resumes, 39 int num_expected_resumes,
40 int num_expected_pauses, 40 int num_expected_pauses,
41 bool set_initial_sync_ended_on_init, 41 bool set_initial_sync_ended_on_init,
42 bool synchronous_init); 42 bool synchronous_init);
43 virtual ~SyncBackendHostForProfileSyncTest();
43 44
44 MOCK_METHOD0(RequestPause, bool()); 45 MOCK_METHOD0(RequestPause, bool());
45 MOCK_METHOD0(RequestResume, bool()); 46 MOCK_METHOD0(RequestResume, bool());
46 MOCK_METHOD0(RequestNudge, void()); 47 MOCK_METHOD0(RequestNudge, void());
47 48
48 virtual void ConfigureDataTypes( 49 virtual void ConfigureDataTypes(
49 const DataTypeController::TypeMap& data_type_controllers, 50 const DataTypeController::TypeMap& data_type_controllers,
50 const syncable::ModelTypeSet& types, 51 const syncable::ModelTypeSet& types,
51 CancelableTask* ready_task); 52 CancelableTask* ready_task);
52 53
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 int num_expected_resumes_; 136 int num_expected_resumes_;
136 int num_expected_pauses_; 137 int num_expected_pauses_;
137 138
138 Task* initial_condition_setup_task_; 139 Task* initial_condition_setup_task_;
139 bool set_initial_sync_ended_on_init_; 140 bool set_initial_sync_ended_on_init_;
140 }; 141 };
141 142
142 143
143 144
144 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 145 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable_mock.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698