| 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 "sync/engine/syncer_proto_util.h" | 5 #include "sync/engine/syncer_proto_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/time.h" | 12 #include "base/time/time.h" |
| 13 #include "sync/internal_api/public/base/model_type_test_util.h" | 13 #include "sync/internal_api/public/base/model_type_test_util.h" |
| 14 #include "sync/protocol/bookmark_specifics.pb.h" | 14 #include "sync/protocol/bookmark_specifics.pb.h" |
| 15 #include "sync/protocol/password_specifics.pb.h" | 15 #include "sync/protocol/password_specifics.pb.h" |
| 16 #include "sync/protocol/sync.pb.h" | 16 #include "sync/protocol/sync.pb.h" |
| 17 #include "sync/protocol/sync_enums.pb.h" | 17 #include "sync/protocol/sync_enums.pb.h" |
| 18 #include "sync/sessions/sync_session_context.h" | 18 #include "sync/sessions/sync_session_context.h" |
| 19 #include "sync/syncable/blob.h" | 19 #include "sync/syncable/blob.h" |
| 20 #include "sync/syncable/directory.h" | 20 #include "sync/syncable/directory.h" |
| 21 #include "sync/test/engine/mock_connection_manager.h" | 21 #include "sync/test/engine/mock_connection_manager.h" |
| 22 #include "sync/test/engine/test_directory_setter_upper.h" | 22 #include "sync/test/engine/test_directory_setter_upper.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 dcm.set_send_error(false); | 290 dcm.set_send_error(false); |
| 291 EXPECT_TRUE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, | 291 EXPECT_TRUE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, |
| 292 msg, &response)); | 292 msg, &response)); |
| 293 | 293 |
| 294 dcm.set_access_denied(true); | 294 dcm.set_access_denied(true); |
| 295 EXPECT_FALSE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, | 295 EXPECT_FALSE(SyncerProtoUtil::PostAndProcessHeaders(&dcm, NULL, |
| 296 msg, &response)); | 296 msg, &response)); |
| 297 } | 297 } |
| 298 | 298 |
| 299 } // namespace syncer | 299 } // namespace syncer |
| OLD | NEW |