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

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: Upload before commit. Created 9 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool AwaitQuiescence(); 131 bool AwaitQuiescence();
132 132
133 // Returns true if the server being used supports injecting errors. 133 // Returns true if the server being used supports injecting errors.
134 bool ServerSupportsErrorTriggering(); 134 bool ServerSupportsErrorTriggering();
135 135
136 // Triggers a migration for one or more datatypes, and waits 136 // Triggers a migration for one or more datatypes, and waits
137 // for the server to complete it. This operation is available 137 // for the server to complete it. This operation is available
138 // only if ServerSupportsErrorTriggering() returned true. 138 // only if ServerSupportsErrorTriggering() returned true.
139 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); 139 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types);
140 140
141 // Triggers the server to set its birthday to a random value thereby
142 // the server would return a birthday error on next sync.
143 void TriggerBirthdayError();
144
141 protected: 145 protected:
142 // InProcessBrowserTest override. Destroys all the sync clients and sync 146 // InProcessBrowserTest override. Destroys all the sync clients and sync
143 // profiles created by a test. 147 // profiles created by a test.
144 virtual void CleanUpOnMainThread(); 148 virtual void CleanUpOnMainThread();
145 149
146 // InProcessBrowserTest override. Changes behavior of the default host 150 // InProcessBrowserTest override. Changes behavior of the default host
147 // resolver to avoid DNS lookup errors. 151 // resolver to avoid DNS lookup errors.
148 virtual void SetUpInProcessBrowserTestFixture(); 152 virtual void SetUpInProcessBrowserTestFixture();
149 153
150 // InProcessBrowserTest override. Resets the host resolver its default 154 // InProcessBrowserTest override. Resets the host resolver its default
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // Fake URLFetcher factory used to mock out GAIA signin. 259 // Fake URLFetcher factory used to mock out GAIA signin.
256 scoped_ptr<FakeURLFetcherFactory> factory_; 260 scoped_ptr<FakeURLFetcherFactory> factory_;
257 261
258 // URLFetcher factory used to contact sync server. 262 // URLFetcher factory used to contact sync server.
259 scoped_ptr<URLFetcherFactory> integration_factory_; 263 scoped_ptr<URLFetcherFactory> integration_factory_;
260 264
261 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); 265 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest);
262 }; 266 };
263 267
264 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 268 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698