OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
6 | 6 |
| 7 #include "base/location.h" |
7 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
8 #include "base/tracked.h" | |
9 #include "chrome/browser/sync/engine/mock_model_safe_workers.h" | 9 #include "chrome/browser/sync/engine/mock_model_safe_workers.h" |
10 #include "chrome/browser/sync/engine/process_commit_response_command.h" | 10 #include "chrome/browser/sync/engine/process_commit_response_command.h" |
11 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 11 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
12 #include "chrome/browser/sync/protocol/sync.pb.h" | 12 #include "chrome/browser/sync/protocol/sync.pb.h" |
13 #include "chrome/browser/sync/sessions/sync_session.h" | 13 #include "chrome/browser/sync/sessions/sync_session.h" |
14 #include "chrome/browser/sync/syncable/directory_manager.h" | 14 #include "chrome/browser/sync/syncable/directory_manager.h" |
15 #include "chrome/browser/sync/syncable/syncable.h" | 15 #include "chrome/browser/sync/syncable/syncable.h" |
16 #include "chrome/browser/sync/syncable/syncable_id.h" | 16 #include "chrome/browser/sync/syncable/syncable_id.h" |
17 #include "chrome/browser/sync/test/engine/syncer_command_test.h" | 17 #include "chrome/browser/sync/test/engine/syncer_command_test.h" |
18 #include "chrome/browser/sync/test/engine/test_id_factory.h" | 18 #include "chrome/browser/sync/test/engine/test_id_factory.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); | 431 EXPECT_EQ(2049U, final_monitor_records["ABC"].bookmark_write_count); |
432 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); | 432 EXPECT_EQ(4U, final_monitor_records["xyz"].bookmark_write_count); |
433 } else { | 433 } else { |
434 EXPECT_TRUE(final_monitor_records.empty()) | 434 EXPECT_TRUE(final_monitor_records.empty()) |
435 << "Should not restore records after successful bookmark commit."; | 435 << "Should not restore records after successful bookmark commit."; |
436 } | 436 } |
437 } | 437 } |
438 | 438 |
439 | 439 |
440 } // namespace browser_sync | 440 } // namespace browser_sync |
OLD | NEW |