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

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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 FAIL() << "Should not get poll interval update."; 46 FAIL() << "Should not get poll interval update.";
47 } 47 }
48 virtual void OnReceivedShortPollIntervalUpdate( 48 virtual void OnReceivedShortPollIntervalUpdate(
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 OnSyncProtocolError(sessions::SyncSession* session) OVERRIDE {
57 FAIL() << "Shouldn't be forced to stop syncing."; 57 FAIL() << "Shouldn't be called.";
58 } 58 }
59 59
60 // ModelSafeWorkerRegistrar implementation. 60 // ModelSafeWorkerRegistrar implementation.
61 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE { 61 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE {
62 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it; 62 std::vector<scoped_refptr<ModelSafeWorker> >::iterator it;
63 for (it = workers_.begin(); it != workers_.end(); ++it) 63 for (it = workers_.begin(); it != workers_.end(); ++it)
64 out->push_back(*it); 64 out->push_back(*it);
65 } 65 }
66 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE { 66 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE {
67 ModelSafeRoutingInfo copy(routing_info_); 67 ModelSafeRoutingInfo copy(routing_info_);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 : SyncerCommandTestWithParam<void*>( 157 : SyncerCommandTestWithParam<void*>(
158 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {} 158 SyncerCommandTestWithParam<void*>::USE_MOCK_DIRECTORY) {}
159 MockDirectorySetterUpper::MockDirectory* mock_directory() { 159 MockDirectorySetterUpper::MockDirectory* mock_directory() {
160 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory(); 160 return static_cast<MockDirectorySetterUpper*>(syncdb())->directory();
161 } 161 }
162 }; 162 };
163 163
164 } // namespace browser_sync 164 } // namespace browser_sync
165 165
166 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_ 166 #endif // CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_
OLDNEW
« chrome/browser/sync/sessions/sync_protocol_error.h ('K') | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698