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

Side by Side Diff: chrome/test/sync/engine/syncer_command_test.h

Issue 7621085: Server directed error handling backend code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. 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
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_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ 5 #ifndef CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_
6 #define CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ 6 #define CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const base::TimeDelta& new_interval) OVERRIDE { 49 const base::TimeDelta& new_interval) OVERRIDE {
50 FAIL() << "Should not get poll interval update."; 50 FAIL() << "Should not get poll interval update.";
51 } 51 }
52 virtual void OnReceivedSessionsCommitDelay( 52 virtual void OnReceivedSessionsCommitDelay(
53 const base::TimeDelta& new_delay) OVERRIDE { 53 const base::TimeDelta& new_delay) OVERRIDE {
54 FAIL() << "Should not get sessions commit delay."; 54 FAIL() << "Should not get sessions commit delay.";
55 } 55 }
56 virtual void OnShouldStopSyncingPermanently() OVERRIDE { 56 virtual void OnShouldStopSyncingPermanently() OVERRIDE {
57 FAIL() << "Shouldn't be forced to stop syncing."; 57 FAIL() << "Shouldn't be forced to stop syncing.";
58 } 58 }
59 virtual void OnRequestEarlyExit() OVERRIDE {
60 FAIL() << "Shouldn't be forced to stop syncing.";
61 }
62 virtual void OnActionableError() OVERRIDE {
63 FAIL() << "Shouldn't be forced to stop syncing.";
64 }
59 65
60 // ModelSafeWorkerRegistrar implementation. 66 // ModelSafeWorkerRegistrar implementation.
61 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { 67 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE {
62 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; 68 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it;
63 for (it = workers_.begin(); it != workers_.end(); ++it) 69 for (it = workers_.begin(); it != workers_.end(); ++it)
64 out->push_back(*it); 70 out->push_back(*it);
65 } 71 }
66 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { 72 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE {
67 ModelSafeRoutingInfo copy(routing_info_); 73 ModelSafeRoutingInfo copy(routing_info_);
68 out->swap(copy); 74 out->swap(copy);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 : SyncerCommandTestWithParam<void*>( 163 : SyncerCommandTestWithParam<void*>(
158 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} 164 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {}
159 MockDirectorySetterUpper::MockDirectory* mock_directory() { 165 MockDirectorySetterUpper::MockDirectory* mock_directory() {
160 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); 166 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory();
161 } 167 }
162 }; 168 };
163 169
164 } // namespace browser_sync 170 } // namespace browser_sync
165 171
166 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ 172 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_
OLDNEW
« chrome/browser/sync/engine/syncer_proto_util.cc ('K') | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698