| 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 "chrome/browser/sync/engine/syncer_proto_util.h" | 5 #include "chrome/browser/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.h" |
| 13 #include "chrome/browser/sync/engine/syncproto.h" | 13 #include "chrome/browser/sync/engine/syncproto.h" |
| 14 #include "chrome/browser/sync/sessions/session_state.h" | 14 #include "chrome/browser/sync/sessions/session_state.h" |
| 15 #include "chrome/browser/sync/sessions/sync_session_context.h" | 15 #include "chrome/browser/sync/sessions/sync_session_context.h" |
| 16 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | |
| 17 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | |
| 18 #include "chrome/browser/sync/protocol/sync.pb.h" | |
| 19 #include "chrome/browser/sync/protocol/sync_enums.pb.h" | |
| 20 #include "chrome/browser/sync/syncable/blob.h" | 16 #include "chrome/browser/sync/syncable/blob.h" |
| 21 #include "chrome/browser/sync/syncable/model_type_test_util.h" | 17 #include "chrome/browser/sync/syncable/model_type_test_util.h" |
| 22 #include "chrome/browser/sync/syncable/syncable.h" | 18 #include "chrome/browser/sync/syncable/syncable.h" |
| 23 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" | 19 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" |
| 24 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" | 20 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" |
| 21 #include "sync/protocol/bookmark_specifics.pb.h" |
| 22 #include "sync/protocol/password_specifics.pb.h" |
| 23 #include "sync/protocol/sync.pb.h" |
| 24 #include "sync/protocol/sync_enums.pb.h" |
| 25 | 25 |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using syncable::Blob; | 28 using syncable::Blob; |
| 29 using ::testing::_; | 29 using ::testing::_; |
| 30 | 30 |
| 31 namespace browser_sync { | 31 namespace browser_sync { |
| 32 using sessions::SyncSessionContext; | 32 using sessions::SyncSessionContext; |
| 33 | 33 |
| 34 class MockSyncSessionContext : public SyncSessionContext { | 34 class MockSyncSessionContext : public SyncSessionContext { |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 SyncProtocolError error; | 289 SyncProtocolError error; |
| 290 error.error_type = browser_sync::THROTTLED; | 290 error.error_type = browser_sync::THROTTLED; |
| 291 | 291 |
| 292 base::TimeTicks ticks = base::TimeTicks::Now(); | 292 base::TimeTicks ticks = base::TimeTicks::Now(); |
| 293 | 293 |
| 294 EXPECT_CALL(delegate, OnSilencedUntil(ticks)); | 294 EXPECT_CALL(delegate, OnSilencedUntil(ticks)); |
| 295 | 295 |
| 296 SyncerProtoUtil::HandleThrottleError(error, ticks, NULL, &delegate); | 296 SyncerProtoUtil::HandleThrottleError(error, ticks, NULL, &delegate); |
| 297 } | 297 } |
| 298 } // namespace browser_sync | 298 } // namespace browser_sync |
| OLD | NEW |