| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/dom_distiller/core/dom_distiller_store.h" | 5 #include "components/dom_distiller/core/dom_distiller_store.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "components/dom_distiller/core/article_entry.h" | 18 #include "components/dom_distiller/core/article_entry.h" |
| 19 #include "components/dom_distiller/core/dom_distiller_test_util.h" | 19 #include "components/dom_distiller/core/dom_distiller_test_util.h" |
| 20 #include "components/leveldb_proto/testing/fake_db.h" | 20 #include "components/leveldb_proto/testing/fake_db.h" |
| 21 #include "sync/api/attachments/attachment_id.h" | 21 #include "components/sync/api/attachments/attachment_id.h" |
| 22 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | 22 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" |
| 23 #include "sync/protocol/sync.pb.h" | 23 #include "components/sync/protocol/sync.pb.h" |
| 24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 using base::Time; | 27 using base::Time; |
| 28 using leveldb_proto::test::FakeDB; | 28 using leveldb_proto::test::FakeDB; |
| 29 using sync_pb::EntitySpecifics; | 29 using sync_pb::EntitySpecifics; |
| 30 using syncer::ModelType; | 30 using syncer::ModelType; |
| 31 using syncer::SyncChange; | 31 using syncer::SyncChange; |
| 32 using syncer::SyncChangeList; | 32 using syncer::SyncChangeList; |
| 33 using syncer::SyncChangeProcessor; | 33 using syncer::SyncChangeProcessor; |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 EntryMap fake_model; | 587 EntryMap fake_model; |
| 588 FakeSyncChangeProcessor* fake_sync_change_processor = | 588 FakeSyncChangeProcessor* fake_sync_change_processor = |
| 589 new FakeSyncChangeProcessor(&fake_model); | 589 new FakeSyncChangeProcessor(&fake_model); |
| 590 store_->MergeDataAndStartSyncing( | 590 store_->MergeDataAndStartSyncing( |
| 591 kDomDistillerModelType, change_data, | 591 kDomDistillerModelType, change_data, |
| 592 base::WrapUnique<SyncChangeProcessor>(fake_sync_change_processor), | 592 base::WrapUnique<SyncChangeProcessor>(fake_sync_change_processor), |
| 593 base::WrapUnique<SyncErrorFactory>(fake_error_factory)); | 593 base::WrapUnique<SyncErrorFactory>(fake_error_factory)); |
| 594 } | 594 } |
| 595 | 595 |
| 596 } // namespace dom_distiller | 596 } // namespace dom_distiller |
| OLD | NEW |