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

Side by Side Diff: chrome/browser/sync/test/engine/mock_connection_manager.h

Issue 9251035: Delete lots of sync ServerConnectionManager code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Mock ServerConnectionManager class for use in client unit tests. 5 // Mock ServerConnectionManager class for use in client unit tests.
6 6
7 #ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ 7 #ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
8 #define CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ 8 #define CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 29 matching lines...) Expand all
40 const std::string& name); 40 const std::string& name);
41 virtual ~MockConnectionManager(); 41 virtual ~MockConnectionManager();
42 42
43 // Overridden ServerConnectionManager functions. 43 // Overridden ServerConnectionManager functions.
44 virtual bool PostBufferToPath( 44 virtual bool PostBufferToPath(
45 PostBufferParams*, 45 PostBufferParams*,
46 const std::string& path, 46 const std::string& path,
47 const std::string& auth_token, 47 const std::string& auth_token,
48 browser_sync::ScopedServerStatusWatcher* watcher) OVERRIDE; 48 browser_sync::ScopedServerStatusWatcher* watcher) OVERRIDE;
49 49
50 virtual bool IsServerReachable() OVERRIDE;
51 virtual bool IsUserAuthenticated() OVERRIDE;
52
53 // Control of commit response. 50 // Control of commit response.
54 void SetMidCommitCallback(const base::Closure& callback); 51 void SetMidCommitCallback(const base::Closure& callback);
55 void SetMidCommitObserver(MidCommitObserver* observer); 52 void SetMidCommitObserver(MidCommitObserver* observer);
56 53
57 // Set this if you want commit to perform commit time rename. Will request 54 // Set this if you want commit to perform commit time rename. Will request
58 // that the client renames all commited entries, prepending this string. 55 // that the client renames all commited entries, prepending this string.
59 void SetCommitTimeRename(std::string prepend); 56 void SetCommitTimeRename(std::string prepend);
60 57
61 // Generic versions of AddUpdate functions. Tests using these function should 58 // Generic versions of AddUpdate functions. Tests using these function should
62 // compile for both the int64 and string id based versions of the server. 59 // compile for both the int64 and string id based versions of the server.
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 int num_get_updates_requests_; 356 int num_get_updates_requests_;
360 357
361 std::string next_token_; 358 std::string next_token_;
362 359
363 sync_pb::ClientToServerMessage last_request_; 360 sync_pb::ClientToServerMessage last_request_;
364 361
365 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager); 362 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager);
366 }; 363 };
367 364
368 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ 365 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698