| 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 // TODO(akalin): This file is basically just a unit test for | 5 // TODO(akalin): This file is basically just a unit test for |
| 6 // BookmarkChangeProcessor. Write unit tests for | 6 // BookmarkChangeProcessor. Write unit tests for |
| 7 // BookmarkModelAssociator separately. | 7 // BookmarkModelAssociator separately. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
| 33 #include "chrome/test/base/testing_profile.h" | 33 #include "chrome/test/base/testing_profile.h" |
| 34 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 34 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 35 #include "components/bookmarks/browser/bookmark_model.h" | 35 #include "components/bookmarks/browser/bookmark_model.h" |
| 36 #include "components/bookmarks/managed/managed_bookmark_service.h" | 36 #include "components/bookmarks/managed/managed_bookmark_service.h" |
| 37 #include "components/bookmarks/test/bookmark_test_helpers.h" | 37 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 38 #include "components/sync_driver/data_type_error_handler.h" | 38 #include "components/sync_driver/data_type_error_handler.h" |
| 39 #include "components/sync_driver/data_type_error_handler_mock.h" | 39 #include "components/sync_driver/data_type_error_handler_mock.h" |
| 40 #include "content/public/test/test_browser_thread_bundle.h" | 40 #include "content/public/test/test_browser_thread_bundle.h" |
| 41 #include "sync/api/sync_error.h" | 41 #include "sync/api/sync_error.h" |
| 42 #include "sync/api/sync_merge_result.h" |
| 42 #include "sync/internal_api/public/change_record.h" | 43 #include "sync/internal_api/public/change_record.h" |
| 43 #include "sync/internal_api/public/read_node.h" | 44 #include "sync/internal_api/public/read_node.h" |
| 44 #include "sync/internal_api/public/read_transaction.h" | 45 #include "sync/internal_api/public/read_transaction.h" |
| 45 #include "sync/internal_api/public/test/test_user_share.h" | 46 #include "sync/internal_api/public/test/test_user_share.h" |
| 46 #include "sync/internal_api/public/write_node.h" | 47 #include "sync/internal_api/public/write_node.h" |
| 47 #include "sync/internal_api/public/write_transaction.h" | 48 #include "sync/internal_api/public/write_transaction.h" |
| 48 #include "sync/internal_api/syncapi_internal.h" | 49 #include "sync/internal_api/syncapi_internal.h" |
| 49 #include "sync/syncable/mutable_entry.h" | 50 #include "sync/syncable/mutable_entry.h" |
| 50 #include "sync/syncable/syncable_id.h" | 51 #include "sync/syncable/syncable_id.h" |
| 51 #include "sync/syncable/syncable_util.h" | 52 #include "sync/syncable/syncable_util.h" |
| (...skipping 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2599 EXPECT_EQ(syncer::kInvalidId, sync_id); | 2600 EXPECT_EQ(syncer::kInvalidId, sync_id); |
| 2600 | 2601 |
| 2601 // Verify that Sync ignores deleting this node. | 2602 // Verify that Sync ignores deleting this node. |
| 2602 model_->Remove(node); | 2603 model_->Remove(node); |
| 2603 EXPECT_EQ(sync_bookmark_count, GetSyncBookmarkCount()); | 2604 EXPECT_EQ(sync_bookmark_count, GetSyncBookmarkCount()); |
| 2604 } | 2605 } |
| 2605 | 2606 |
| 2606 } // namespace | 2607 } // namespace |
| 2607 | 2608 |
| 2608 } // namespace browser_sync | 2609 } // namespace browser_sync |
| OLD | NEW |