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

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

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 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) 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 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 syncer::ModelTypeSet restored_types) OVERRIDE; 61 syncer::ModelTypeSet restored_types) OVERRIDE;
62 62
63 static void SetHistoryServiceExpectations(ProfileMock* profile); 63 static void SetHistoryServiceExpectations(ProfileMock* profile);
64 64
65 void SetInitialSyncEndedForAllTypes(); 65 void SetInitialSyncEndedForAllTypes();
66 66
67 void EmitOnNotificationsEnabled(); 67 void EmitOnNotificationsEnabled();
68 void EmitOnNotificationsDisabled( 68 void EmitOnNotificationsDisabled(
69 syncer::NotificationsDisabledReason reason); 69 syncer::NotificationsDisabledReason reason);
70 void EmitOnIncomingNotification( 70 void EmitOnIncomingNotification(
71 const syncer::ObjectIdPayloadMap& id_payloads, 71 const syncer::ObjectIdStateMap& id_state_map,
72 const syncer::IncomingNotificationSource source); 72 const syncer::IncomingNotificationSource source);
73 73
74 protected: 74 protected:
75 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; 75 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
76 76
77 private: 77 private:
78 syncer::TestIdFactory& id_factory_; 78 syncer::TestIdFactory& id_factory_;
79 base::Closure& callback_; 79 base::Closure& callback_;
80 80
81 bool set_initial_sync_ended_on_init_; 81 bool set_initial_sync_ended_on_init_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool synchronous_sync_configuration_; 141 bool synchronous_sync_configuration_;
142 142
143 base::Closure callback_; 143 base::Closure callback_;
144 bool set_initial_sync_ended_on_init_; 144 bool set_initial_sync_ended_on_init_;
145 145
146 bool fail_initial_download_; 146 bool fail_initial_download_;
147 syncer::StorageOption storage_option_; 147 syncer::StorageOption storage_option_;
148 }; 148 };
149 149
150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 150 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.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