Chromium Code Reviews| 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_INTEGRATION_SYNC_TEST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/test/base/in_process_browser_test.h" | 9 #include "chrome/test/base/in_process_browser_test.h" |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 // Triggers a transient error on the server. Note the server will stay in | 173 // Triggers a transient error on the server. Note the server will stay in |
| 174 // this state until shut down. | 174 // this state until shut down. |
| 175 void TriggerTransientError(); | 175 void TriggerTransientError(); |
| 176 | 176 |
| 177 // Triggers a sync error on the server. | 177 // Triggers a sync error on the server. |
| 178 void TriggerSyncError(const browser_sync::SyncProtocolError& error); | 178 void TriggerSyncError(const browser_sync::SyncProtocolError& error); |
| 179 | 179 |
| 180 // Triggers setting the sync_tabs field of the nigori node. | 180 // Triggers setting the sync_tabs field of the nigori node. |
| 181 void TriggerSetSyncTabs(); | 181 void TriggerSetSyncTabs(); |
| 182 | 182 |
| 183 // Returns the number of default items that every client syncs. | |
| 184 int NumberOfDefaultItems() const; | |
|
Raghu Simha
2011/11/07 22:18:12
nit: Perhaps name this NumberOfDefaultSyncItems()
SteveT
2011/11/08 00:17:27
Sure. Done here and in sync_test.cc. Had to reform
| |
| 185 | |
| 183 protected: | 186 protected: |
| 184 // Add custom switches needed for running the test. | 187 // Add custom switches needed for running the test. |
| 185 virtual void AddTestSwitches(CommandLine* cl); | 188 virtual void AddTestSwitches(CommandLine* cl); |
| 186 | 189 |
| 187 // Append the command line switches to enable experimental types that aren't | 190 // Append the command line switches to enable experimental types that aren't |
| 188 // on by default yet. | 191 // on by default yet. |
| 189 virtual void AddOptionalTypesToCommandLine(CommandLine* cl); | 192 virtual void AddOptionalTypesToCommandLine(CommandLine* cl); |
| 190 | 193 |
| 191 // InProcessBrowserTest override. Destroys all the sync clients and sync | 194 // InProcessBrowserTest override. Destroys all the sync clients and sync |
| 192 // profiles created by a test. | 195 // profiles created by a test. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 | 315 |
| 313 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 316 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
| 314 scoped_ptr<URLFetcherImplFactory> factory_; | 317 scoped_ptr<URLFetcherImplFactory> factory_; |
| 315 | 318 |
| 316 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 319 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 317 }; | 320 }; |
| 318 | 321 |
| 319 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); | 322 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); |
| 320 | 323 |
| 321 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 324 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |