| 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 #include "components/sync/engine_impl/syncer_proto_util.h" | 5 #include "components/sync/engine_impl/syncer_proto_util.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | |
| 9 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 10 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 11 #include "base/time/time.h" | |
| 12 #include "components/sync/base/cancelation_signal.h" | 9 #include "components/sync/base/cancelation_signal.h" |
| 13 #include "components/sync/base/model_type_test_util.h" | 10 #include "components/sync/base/model_type_test_util.h" |
| 14 #include "components/sync/engine_impl/cycle/sync_cycle_context.h" | 11 #include "components/sync/engine_impl/cycle/sync_cycle_context.h" |
| 15 #include "components/sync/protocol/bookmark_specifics.pb.h" | 12 #include "components/sync/protocol/bookmark_specifics.pb.h" |
| 16 #include "components/sync/protocol/password_specifics.pb.h" | 13 #include "components/sync/protocol/password_specifics.pb.h" |
| 17 #include "components/sync/protocol/sync.pb.h" | 14 #include "components/sync/protocol/sync.pb.h" |
| 18 #include "components/sync/protocol/sync_enums.pb.h" | 15 #include "components/sync/protocol/sync_enums.pb.h" |
| 19 #include "components/sync/syncable/directory.h" | 16 #include "components/sync/syncable/directory.h" |
| 20 #include "components/sync/test/engine/mock_connection_manager.h" | 17 #include "components/sync/test/engine/mock_connection_manager.h" |
| 21 #include "components/sync/test/engine/test_directory_setter_upper.h" | 18 #include "components/sync/test/engine/test_directory_setter_upper.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 dcm.set_send_error(true); | 249 dcm.set_send_error(true); |
| 253 EXPECT_FALSE( | 250 EXPECT_FALSE( |
| 254 SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, msg, &response)); | 251 SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, msg, &response)); |
| 255 | 252 |
| 256 dcm.set_send_error(false); | 253 dcm.set_send_error(false); |
| 257 EXPECT_TRUE( | 254 EXPECT_TRUE( |
| 258 SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, msg, &response)); | 255 SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, msg, &response)); |
| 259 } | 256 } |
| 260 | 257 |
| 261 } // namespace syncer | 258 } // namespace syncer |
| OLD | NEW |