| OLD | NEW |
| 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 SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ | 7 #ifndef SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ |
| 8 #define 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 "sync/engine/net/server_connection_manager.h" | 19 #include "sync/engine/net/server_connection_manager.h" |
| 20 #include "sync/internal_api/public/syncable/model_type.h" | 20 #include "sync/internal_api/public/base/model_type.h" |
| 21 #include "sync/internal_api/public/syncable/model_type_payload_map.h" | 21 #include "sync/internal_api/public/base/model_type_payload_map.h" |
| 22 #include "sync/protocol/sync.pb.h" | 22 #include "sync/protocol/sync.pb.h" |
| 23 | 23 |
| 24 namespace syncer { | 24 namespace syncer { |
| 25 | 25 |
| 26 class MockConnectionManager : public syncer::ServerConnectionManager { | 26 class MockConnectionManager : public syncer::ServerConnectionManager { |
| 27 public: | 27 public: |
| 28 class MidCommitObserver { | 28 class MidCommitObserver { |
| 29 public: | 29 public: |
| 30 virtual void Observe() = 0; | 30 virtual void Observe() = 0; |
| 31 | 31 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 std::string next_token_; | 346 std::string next_token_; |
| 347 | 347 |
| 348 sync_pb::ClientToServerMessage last_request_; | 348 sync_pb::ClientToServerMessage last_request_; |
| 349 | 349 |
| 350 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager); | 350 DISALLOW_COPY_AND_ASSIGN(MockConnectionManager); |
| 351 }; | 351 }; |
| 352 | 352 |
| 353 } // namespace syncer | 353 } // namespace syncer |
| 354 | 354 |
| 355 #endif // SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ | 355 #endif // SYNC_TEST_ENGINE_MOCK_CONNECTION_MANAGER_H_ |
| OLD | NEW |