| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/get_updates_processor.h" | 5 #include "sync/engine/get_updates_processor.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "sync/engine/get_updates_delegate.h" | 9 #include "sync/engine/get_updates_delegate.h" |
| 10 #include "sync/engine/update_handler.h" | 10 #include "sync/engine/update_handler.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 // Variant of GetUpdatesProcessor test designed to test update application. | 383 // Variant of GetUpdatesProcessor test designed to test update application. |
| 384 // | 384 // |
| 385 // Maintains two enabled types, but requests that updates be applied for only | 385 // Maintains two enabled types, but requests that updates be applied for only |
| 386 // one of them. | 386 // one of them. |
| 387 class GetUpdatesProcessorApplyUpdatesTest : public GetUpdatesProcessorTest { | 387 class GetUpdatesProcessorApplyUpdatesTest : public GetUpdatesProcessorTest { |
| 388 public: | 388 public: |
| 389 GetUpdatesProcessorApplyUpdatesTest() {} | 389 GetUpdatesProcessorApplyUpdatesTest() {} |
| 390 virtual ~GetUpdatesProcessorApplyUpdatesTest() {} | 390 virtual ~GetUpdatesProcessorApplyUpdatesTest() {} |
| 391 | 391 |
| 392 virtual void SetUp() OVERRIDE { | 392 virtual void SetUp() override { |
| 393 bookmarks_handler_ = AddUpdateHandler(BOOKMARKS); | 393 bookmarks_handler_ = AddUpdateHandler(BOOKMARKS); |
| 394 autofill_handler_ = AddUpdateHandler(AUTOFILL); | 394 autofill_handler_ = AddUpdateHandler(AUTOFILL); |
| 395 } | 395 } |
| 396 | 396 |
| 397 ModelTypeSet GetGuTypes() { | 397 ModelTypeSet GetGuTypes() { |
| 398 return ModelTypeSet(AUTOFILL); | 398 return ModelTypeSet(AUTOFILL); |
| 399 } | 399 } |
| 400 | 400 |
| 401 MockUpdateHandler* GetNonAppliedHandler() { | 401 MockUpdateHandler* GetNonAppliedHandler() { |
| 402 return bookmarks_handler_; | 402 return bookmarks_handler_; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) { | 505 TEST_F(DownloadUpdatesDebugInfoTest, VerifyCopyOverwrites) { |
| 506 sync_pb::DebugInfo debug_info; | 506 sync_pb::DebugInfo debug_info; |
| 507 AddDebugEvent(); | 507 AddDebugEvent(); |
| 508 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); | 508 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); |
| 509 EXPECT_EQ(1, debug_info.events_size()); | 509 EXPECT_EQ(1, debug_info.events_size()); |
| 510 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); | 510 GetUpdatesProcessor::CopyClientDebugInfo(debug_info_getter(), &debug_info); |
| 511 EXPECT_EQ(1, debug_info.events_size()); | 511 EXPECT_EQ(1, debug_info.events_size()); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace syncer | 514 } // namespace syncer |
| OLD | NEW |