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/download_updates_command.h" | 5 #include "chrome/browser/sync/engine/download_updates_command.h" |
6 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 6 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
7 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 7 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
8 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" | 8 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" |
9 #include "chrome/browser/sync/protocol/sync.pb.h" | 9 #include "chrome/browser/sync/protocol/sync.pb.h" |
10 #include "chrome/browser/sync/test/engine/fake_model_worker.h" | 10 #include "chrome/browser/sync/test/engine/fake_model_worker.h" |
11 #include "chrome/browser/sync/test/engine/proto_extension_validator.h" | |
12 #include "chrome/browser/sync/test/engine/syncer_command_test.h" | 11 #include "chrome/browser/sync/test/engine/syncer_command_test.h" |
13 | 12 |
14 using ::testing::_; | 13 using ::testing::_; |
15 namespace browser_sync { | 14 namespace browser_sync { |
16 | 15 |
17 using syncable::FIRST_REAL_MODEL_TYPE; | 16 using syncable::FIRST_REAL_MODEL_TYPE; |
18 using syncable::MODEL_TYPE_COUNT; | 17 using syncable::MODEL_TYPE_COUNT; |
19 | 18 |
20 // A test fixture for tests exercising DownloadUpdatesCommandTest. | 19 // A test fixture for tests exercising DownloadUpdatesCommandTest. |
21 class DownloadUpdatesCommandTest : public SyncerCommandTest { | 20 class DownloadUpdatesCommandTest : public SyncerCommandTest { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 EXPECT_CALL(*(mock_debug_info_getter()), GetAndClearDebugInfo(_)) | 65 EXPECT_CALL(*(mock_debug_info_getter()), GetAndClearDebugInfo(_)) |
67 .Times(1); | 66 .Times(1); |
68 command_.AppendClientDebugInfoIfNeeded(session(), &debug_info); | 67 command_.AppendClientDebugInfoIfNeeded(session(), &debug_info); |
69 | 68 |
70 // Now try to add it once more and make sure |GetAndClearDebugInfo| is not | 69 // Now try to add it once more and make sure |GetAndClearDebugInfo| is not |
71 // called. | 70 // called. |
72 command_.AppendClientDebugInfoIfNeeded(session(), &debug_info); | 71 command_.AppendClientDebugInfoIfNeeded(session(), &debug_info); |
73 } | 72 } |
74 | 73 |
75 } // namespace browser_sync | 74 } // namespace browser_sync |
OLD | NEW |