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

Side by Side Diff: chrome/browser/sync/test/integration/profile_sync_service_harness.h

Issue 1155443009: [Sync] Rename SyncActive to IsSyncActive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More non-android cases. Created 5 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 std::vector<ProfileSyncServiceHarness*>& clients); 75 std::vector<ProfileSyncServiceHarness*>& clients);
76 76
77 // Blocks the caller until the sync backend is initialized or some end state 77 // Blocks the caller until the sync backend is initialized or some end state
78 // (e.g., auth error) is reached. Returns true if and only if the backend 78 // (e.g., auth error) is reached. Returns true if and only if the backend
79 // initialized successfully. See ProfileSyncService's backend_initialized() 79 // initialized successfully. See ProfileSyncService's backend_initialized()
80 // method for the definition of backend initialization. 80 // method for the definition of backend initialization.
81 bool AwaitBackendInitialization(); 81 bool AwaitBackendInitialization();
82 82
83 // Blocks the caller until sync setup is complete. Returns true if and only 83 // Blocks the caller until sync setup is complete. Returns true if and only
84 // if sync setup completed successfully. See sync_driver::SyncService's 84 // if sync setup completed successfully. See sync_driver::SyncService's
85 // SyncActive() method for the definition of what successful means here. 85 // IsSyncActive() method for the definition of what successful means here.
86 bool AwaitSyncSetupCompletion(); 86 bool AwaitSyncSetupCompletion();
87 87
88 // Returns the ProfileSyncService member of the sync client. 88 // Returns the ProfileSyncService member of the sync client.
89 ProfileSyncService* service() const { return service_; } 89 ProfileSyncService* service() const { return service_; }
90 90
91 // Returns the debug name for this profile. Used for logging. 91 // Returns the debug name for this profile. Used for logging.
92 const std::string& profile_debug_name() const { return profile_debug_name_; } 92 const std::string& profile_debug_name() const { return profile_debug_name_; }
93 93
94 // Enables sync for a particular sync datatype. Returns true on success. 94 // Enables sync for a particular sync datatype. Returns true on success.
95 bool EnableSyncForDatatype(syncer::ModelType datatype); 95 bool EnableSyncForDatatype(syncer::ModelType datatype);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // all refresh tokens used in the tests are different. 151 // all refresh tokens used in the tests are different.
152 int oauth2_refesh_token_number_; 152 int oauth2_refesh_token_number_;
153 153
154 // Used for logging. 154 // Used for logging.
155 const std::string profile_debug_name_; 155 const std::string profile_debug_name_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); 157 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness);
158 }; 158 };
159 159
160 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ 160 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util_unittest.cc ('k') | chrome/browser/sync/test/integration/profile_sync_service_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698