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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "base/time/time.h" | 25 #include "base/time/time.h" |
26 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" | 26 #include "components/browser_sync/browser/abstract_profile_sync_service_test.h" |
27 #include "components/browser_sync/browser/test_profile_sync_service.h" | 27 #include "components/browser_sync/browser/test_profile_sync_service.h" |
28 #include "components/history/core/browser/history_backend.h" | 28 #include "components/history/core/browser/history_backend.h" |
29 #include "components/history/core/browser/history_backend_client.h" | 29 #include "components/history/core/browser/history_backend_client.h" |
30 #include "components/history/core/browser/history_backend_notifier.h" | 30 #include "components/history/core/browser/history_backend_notifier.h" |
31 #include "components/history/core/browser/history_db_task.h" | 31 #include "components/history/core/browser/history_db_task.h" |
32 #include "components/history/core/browser/history_service.h" | 32 #include "components/history/core/browser/history_service.h" |
33 #include "components/history/core/browser/typed_url_data_type_controller.h" | 33 #include "components/history/core/browser/typed_url_data_type_controller.h" |
34 #include "components/signin/core/browser/signin_manager.h" | 34 #include "components/signin/core/browser/signin_manager.h" |
| 35 #include "components/sync/core/read_node.h" |
| 36 #include "components/sync/core/read_transaction.h" |
| 37 #include "components/sync/core/test/data_type_error_handler_mock.h" |
| 38 #include "components/sync/core/write_node.h" |
| 39 #include "components/sync/core/write_transaction.h" |
| 40 #include "components/sync/protocol/typed_url_specifics.pb.h" |
35 #include "components/sync_driver/data_type_manager_impl.h" | 41 #include "components/sync_driver/data_type_manager_impl.h" |
36 #include "sync/internal_api/public/read_node.h" | |
37 #include "sync/internal_api/public/read_transaction.h" | |
38 #include "sync/internal_api/public/test/data_type_error_handler_mock.h" | |
39 #include "sync/internal_api/public/write_node.h" | |
40 #include "sync/internal_api/public/write_transaction.h" | |
41 #include "sync/protocol/typed_url_specifics.pb.h" | |
42 #include "testing/gmock/include/gmock/gmock.h" | 42 #include "testing/gmock/include/gmock/gmock.h" |
43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
44 #include "url/gurl.h" | 44 #include "url/gurl.h" |
45 | 45 |
46 using browser_sync::TypedUrlDataTypeController; | 46 using browser_sync::TypedUrlDataTypeController; |
47 using history::HistoryBackend; | 47 using history::HistoryBackend; |
48 using history::HistoryBackendNotifier; | 48 using history::HistoryBackendNotifier; |
49 using history::TypedUrlSyncableService; | 49 using history::TypedUrlSyncableService; |
50 using testing::DoAll; | 50 using testing::DoAll; |
51 using testing::Return; | 51 using testing::Return; |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 history::URLRows changed_urls; | 1080 history::URLRows changed_urls; |
1081 changed_urls.push_back(updated_url_entry); | 1081 changed_urls.push_back(updated_url_entry); |
1082 SendNotificationURLsModified(changed_urls); | 1082 SendNotificationURLsModified(changed_urls); |
1083 | 1083 |
1084 history::URLRows new_sync_entries; | 1084 history::URLRows new_sync_entries; |
1085 GetTypedUrlsFromSyncDB(&new_sync_entries); | 1085 GetTypedUrlsFromSyncDB(&new_sync_entries); |
1086 | 1086 |
1087 // The change should be ignored. | 1087 // The change should be ignored. |
1088 ASSERT_EQ(0U, new_sync_entries.size()); | 1088 ASSERT_EQ(0U, new_sync_entries.size()); |
1089 } | 1089 } |
OLD | NEW |