| 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/abstract_profile_sync_service_test.h" | 26 #include "components/browser_sync/abstract_profile_sync_service_test.h" |
| 27 #include "components/browser_sync/test_profile_sync_service.h" | 27 #include "components/browser_sync/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/write_node.h" | |
| 38 #include "components/sync/core/write_transaction.h" | |
| 39 #include "components/sync/driver/data_type_manager_impl.h" | 35 #include "components/sync/driver/data_type_manager_impl.h" |
| 40 #include "components/sync/model/data_type_error_handler_mock.h" | 36 #include "components/sync/model/data_type_error_handler_mock.h" |
| 41 #include "components/sync/protocol/typed_url_specifics.pb.h" | 37 #include "components/sync/protocol/typed_url_specifics.pb.h" |
| 38 #include "components/sync/syncable/read_node.h" |
| 39 #include "components/sync/syncable/read_transaction.h" |
| 40 #include "components/sync/syncable/write_node.h" |
| 41 #include "components/sync/syncable/write_transaction.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 history::HistoryBackend; | 46 using history::HistoryBackend; |
| 47 using history::HistoryBackendNotifier; | 47 using history::HistoryBackendNotifier; |
| 48 using history::TypedUrlSyncableService; | 48 using history::TypedUrlSyncableService; |
| 49 using testing::DoAll; | 49 using testing::DoAll; |
| 50 using testing::Return; | 50 using testing::Return; |
| 51 using testing::SetArgumentPointee; | 51 using testing::SetArgumentPointee; |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 SendNotificationURLsModified(changed_urls); | 1046 SendNotificationURLsModified(changed_urls); |
| 1047 | 1047 |
| 1048 history::URLRows new_sync_entries; | 1048 history::URLRows new_sync_entries; |
| 1049 GetTypedUrlsFromSyncDB(&new_sync_entries); | 1049 GetTypedUrlsFromSyncDB(&new_sync_entries); |
| 1050 | 1050 |
| 1051 // The change should be ignored. | 1051 // The change should be ignored. |
| 1052 ASSERT_EQ(0U, new_sync_entries.size()); | 1052 ASSERT_EQ(0U, new_sync_entries.size()); |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 } // namespace browser_sync | 1055 } // namespace browser_sync |
| OLD | NEW |