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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 | « sync/test/engine/fake_model_worker.cc ('k') | sync/test/engine/mock_connection_manager.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) 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 SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
8 #define CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ 8 #define SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
9 #pragma once 9 #pragma once
10 10
11 #include <bitset> 11 #include <bitset>
12 #include <list> 12 #include <list>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
19 #include "chrome/browser/sync/engine/net/server_connection_manager.h" 19 #include "sync/engine/net/server_connection_manager.h"
20 #include "chrome/browser/sync/syncable/model_type.h" 20 #include "sync/syncable/model_type.h"
21 #include "chrome/browser/sync/syncable/model_type_payload_map.h" 21 #include "sync/syncable/model_type_payload_map.h"
22 #include "sync/protocol/sync.pb.h" 22 #include "sync/protocol/sync.pb.h"
23 23
24 class MockConnectionManager : public browser_sync::ServerConnectionManager { 24 class MockConnectionManager : public browser_sync::ServerConnectionManager {
25 public: 25 public:
26 class MidCommitObserver { 26 class MidCommitObserver {
27 public: 27 public:
28 virtual void Observe() = 0; 28 virtual void Observe() = 0;
29 29
30 protected: 30 protected:
31 virtual ~MidCommitObserver() {} 31 virtual ~MidCommitObserver() {}
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 int num_get_updates_requests_; 354 int num_get_updates_requests_;
355 355
356 std::string next_token_; 356 std::string next_token_;
357 357
358 sync_pb::ClientToServerMessage last_request_; 358 sync_pb::ClientToServerMessage last_request_;
359 359
360 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager); 360 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager);
361 }; 361 };
362 362
363 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ 363 #endif // SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/test/engine/fake_model_worker.cc ('k') | sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698