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

Side by Side Diff: chrome/test/live_sync/live_sync_test.h

Issue 7481009: Test birtday error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typos in testserver.py Created 9 years, 5 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) 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_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/in_process_browser_test.h" 9 #include "chrome/test/in_process_browser_test.h"
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool AwaitQuiescence(); 123 bool AwaitQuiescence();
124 124
125 // Returns true if the server being used supports injecting errors. 125 // Returns true if the server being used supports injecting errors.
126 bool ServerSupportsErrorTriggering(); 126 bool ServerSupportsErrorTriggering();
127 127
128 // Triggers a migration for one or more datatypes, and waits 128 // Triggers a migration for one or more datatypes, and waits
129 // for the server to complete it. This operation is available 129 // for the server to complete it. This operation is available
130 // only if ServerSupportsErrorTriggering() returned true. 130 // only if ServerSupportsErrorTriggering() returned true.
131 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); 131 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types);
132 132
133 // Triggers the server to set its birthday to a random value thereby
134 // the server would return a birthday error on next sync.
135 void TriggerBirthdayError();
136
133 protected: 137 protected:
134 // InProcessBrowserTest override. Destroys all the sync clients and sync 138 // InProcessBrowserTest override. Destroys all the sync clients and sync
135 // profiles created by a test. 139 // profiles created by a test.
136 virtual void CleanUpOnMainThread(); 140 virtual void CleanUpOnMainThread();
137 141
138 // InProcessBrowserTest override. Changes behavior of the default host 142 // InProcessBrowserTest override. Changes behavior of the default host
139 // resolver to avoid DNS lookup errors. 143 // resolver to avoid DNS lookup errors.
140 virtual void SetUpInProcessBrowserTestFixture(); 144 virtual void SetUpInProcessBrowserTestFixture();
141 145
142 // InProcessBrowserTest override. Resets the host resolver its default 146 // InProcessBrowserTest override. Resets the host resolver its default
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Fake URLFetcher factory used to mock out GAIA signin. 247 // Fake URLFetcher factory used to mock out GAIA signin.
244 scoped_ptr<FakeURLFetcherFactory> factory_; 248 scoped_ptr<FakeURLFetcherFactory> factory_;
245 249
246 // URLFetcher factory used to contact sync server. 250 // URLFetcher factory used to contact sync server.
247 scoped_ptr<URLFetcherFactory> integration_factory_; 251 scoped_ptr<URLFetcherFactory> integration_factory_;
248 252
249 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); 253 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest);
250 }; 254 };
251 255
252 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 256 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698