| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // | |
| 5 // Mock ServerConnectionManager class for use in client regression tests. | |
| 6 | 4 |
| 7 #include "components/sync/test/engine/mock_connection_manager.h" | 5 #include "components/sync/test/engine/mock_connection_manager.h" |
| 8 | 6 |
| 9 #include <map> | 7 #include <map> |
| 10 | 8 |
| 11 #include "base/location.h" | 9 #include "base/location.h" |
| 12 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 13 #include "components/sync/engine_impl/syncer_proto_util.h" | 11 #include "components/sync/engine_impl/syncer_proto_util.h" |
| 14 #include "components/sync/protocol/bookmark_specifics.pb.h" | 12 #include "components/sync/protocol/bookmark_specifics.pb.h" |
| 15 #include "components/sync/syncable/directory.h" | 13 #include "components/sync/syncable/directory.h" |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 server_status_ = HttpResponse::SERVER_CONNECTION_OK; | 755 server_status_ = HttpResponse::SERVER_CONNECTION_OK; |
| 758 } | 756 } |
| 759 } | 757 } |
| 760 | 758 |
| 761 void MockConnectionManager::SetServerStatus( | 759 void MockConnectionManager::SetServerStatus( |
| 762 HttpResponse::ServerConnectionCode server_status) { | 760 HttpResponse::ServerConnectionCode server_status) { |
| 763 server_status_ = server_status; | 761 server_status_ = server_status; |
| 764 } | 762 } |
| 765 | 763 |
| 766 } // namespace syncer | 764 } // namespace syncer |
| OLD | NEW |