| 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 <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "components/sync/syncable/syncable_id.h" | 53 #include "components/sync/syncable/syncable_id.h" |
| 54 #include "components/sync/syncable/syncable_util.h" | 54 #include "components/sync/syncable/syncable_util.h" |
| 55 #include "components/sync/syncable/syncable_write_transaction.h" | 55 #include "components/sync/syncable/syncable_write_transaction.h" |
| 56 #include "components/sync_bookmarks/bookmark_change_processor.h" | 56 #include "components/sync_bookmarks/bookmark_change_processor.h" |
| 57 #include "components/sync_bookmarks/bookmark_model_associator.h" | 57 #include "components/sync_bookmarks/bookmark_model_associator.h" |
| 58 #include "testing/gmock/include/gmock/gmock.h" | 58 #include "testing/gmock/include/gmock/gmock.h" |
| 59 #include "testing/gtest/include/gtest/gtest.h" | 59 #include "testing/gtest/include/gtest/gtest.h" |
| 60 | 60 |
| 61 using bookmarks::BookmarkModel; | 61 using bookmarks::BookmarkModel; |
| 62 using bookmarks::BookmarkNode; | 62 using bookmarks::BookmarkNode; |
| 63 using sync_bookmarks::BookmarkChangeProcessor; |
| 64 using sync_bookmarks::BookmarkModelAssociator; |
| 63 using syncer::BaseNode; | 65 using syncer::BaseNode; |
| 64 using testing::_; | 66 using testing::_; |
| 65 using testing::Return; | 67 using testing::Return; |
| 66 using testing::StrictMock; | 68 using testing::StrictMock; |
| 67 | 69 |
| 68 namespace browser_sync { | 70 namespace browser_sync { |
| 69 | 71 |
| 70 namespace { | 72 namespace { |
| 71 | 73 |
| 72 #if defined(OS_ANDROID) || defined(OS_IOS) | 74 #if defined(OS_ANDROID) || defined(OS_IOS) |
| (...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2590 EXPECT_EQ(syncer::kInvalidId, sync_id); | 2592 EXPECT_EQ(syncer::kInvalidId, sync_id); |
| 2591 | 2593 |
| 2592 // Verify that Sync ignores deleting this node. | 2594 // Verify that Sync ignores deleting this node. |
| 2593 model()->Remove(node); | 2595 model()->Remove(node); |
| 2594 EXPECT_EQ(sync_bookmark_count, GetSyncBookmarkCount()); | 2596 EXPECT_EQ(sync_bookmark_count, GetSyncBookmarkCount()); |
| 2595 } | 2597 } |
| 2596 | 2598 |
| 2597 } // namespace | 2599 } // namespace |
| 2598 | 2600 |
| 2599 } // namespace browser_sync | 2601 } // namespace browser_sync |
| OLD | NEW |