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 // | 4 // |
5 // Mock ServerConnectionManager class for use in client regression tests. | 5 // Mock ServerConnectionManager class for use in client regression tests. |
6 | 6 |
7 #include "components/sync/test/engine/mock_connection_manager.h" | 7 #include "components/sync/test/engine/mock_connection_manager.h" |
8 | 8 |
9 #include <stdint.h> | |
10 | |
11 #include <map> | 9 #include <map> |
12 | 10 |
13 #include "base/location.h" | 11 #include "base/location.h" |
14 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
15 #include "components/sync/engine_impl/syncer_proto_util.h" | 13 #include "components/sync/engine_impl/syncer_proto_util.h" |
16 #include "components/sync/protocol/bookmark_specifics.pb.h" | 14 #include "components/sync/protocol/bookmark_specifics.pb.h" |
17 #include "components/sync/syncable/directory.h" | 15 #include "components/sync/syncable/directory.h" |
18 #include "components/sync/syncable/syncable_write_transaction.h" | 16 #include "components/sync/syncable/syncable_write_transaction.h" |
19 #include "components/sync/test/engine/test_id_factory.h" | 17 #include "components/sync/test/engine/test_id_factory.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 server_status_ = HttpResponse::SERVER_CONNECTION_OK; | 757 server_status_ = HttpResponse::SERVER_CONNECTION_OK; |
760 } | 758 } |
761 } | 759 } |
762 | 760 |
763 void MockConnectionManager::SetServerStatus( | 761 void MockConnectionManager::SetServerStatus( |
764 HttpResponse::ServerConnectionCode server_status) { | 762 HttpResponse::ServerConnectionCode server_status) { |
765 server_status_ = server_status; | 763 server_status_ = server_status; |
766 } | 764 } |
767 | 765 |
768 } // namespace syncer | 766 } // namespace syncer |
OLD | NEW |