Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: components/sync/driver/generic_change_processor_unittest.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/driver/generic_change_processor.h" 5 #include "components/sync/driver/generic_change_processor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "components/sync/base/model_type.h" 14 #include "components/sync/base/model_type.h"
15 #include "components/sync/core/read_node.h"
16 #include "components/sync/core/read_transaction.h"
17 #include "components/sync/core/sync_encryption_handler.h" 15 #include "components/sync/core/sync_encryption_handler.h"
18 #include "components/sync/core/test/test_user_share.h"
19 #include "components/sync/core/user_share.h"
20 #include "components/sync/core/write_node.h"
21 #include "components/sync/core/write_transaction.h"
22 #include "components/sync/device_info/local_device_info_provider.h" 16 #include "components/sync/device_info/local_device_info_provider.h"
23 #include "components/sync/driver/fake_sync_client.h" 17 #include "components/sync/driver/fake_sync_client.h"
24 #include "components/sync/driver/sync_api_component_factory.h" 18 #include "components/sync/driver/sync_api_component_factory.h"
25 #include "components/sync/engine/attachments/fake_attachment_downloader.h" 19 #include "components/sync/engine/attachments/fake_attachment_downloader.h"
26 #include "components/sync/engine/attachments/fake_attachment_uploader.h" 20 #include "components/sync/engine/attachments/fake_attachment_uploader.h"
27 #include "components/sync/model/attachments/attachment_id.h" 21 #include "components/sync/model/attachments/attachment_id.h"
28 #include "components/sync/model/attachments/attachment_service.h" 22 #include "components/sync/model/attachments/attachment_service.h"
29 #include "components/sync/model/data_type_error_handler_mock.h" 23 #include "components/sync/model/data_type_error_handler_mock.h"
30 #include "components/sync/model/fake_syncable_service.h" 24 #include "components/sync/model/fake_syncable_service.h"
31 #include "components/sync/model/sync_change.h" 25 #include "components/sync/model/sync_change.h"
26 #include "components/sync/syncable/read_node.h"
27 #include "components/sync/syncable/read_transaction.h"
28 #include "components/sync/syncable/test_user_share.h"
29 #include "components/sync/syncable/user_share.h"
30 #include "components/sync/syncable/write_node.h"
31 #include "components/sync/syncable/write_transaction.h"
32 #include "testing/gmock/include/gmock/gmock.h" 32 #include "testing/gmock/include/gmock/gmock.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 34
35 namespace syncer { 35 namespace syncer {
36 36
37 namespace { 37 namespace {
38 38
39 // A mock that keeps track of attachments passed to UploadAttachments. 39 // A mock that keeps track of attachments passed to UploadAttachments.
40 class MockAttachmentService : public AttachmentService { 40 class MockAttachmentService : public AttachmentService {
41 public: 41 public:
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 SyncDataList sync_data = change_processor()->GetAllSyncData(SESSIONS); 500 SyncDataList sync_data = change_processor()->GetAllSyncData(SESSIONS);
501 ASSERT_EQ(sync_data.size(), 1U); 501 ASSERT_EQ(sync_data.size(), 1U);
502 ASSERT_EQ("session tag 2", 502 ASSERT_EQ("session tag 2",
503 sync_data[0].GetSpecifics().session().session_tag()); 503 sync_data[0].GetSpecifics().session().session_tag());
504 EXPECT_FALSE(SyncDataRemote(sync_data[0]).GetClientTagHash().empty()); 504 EXPECT_FALSE(SyncDataRemote(sync_data[0]).GetClientTagHash().empty());
505 } 505 }
506 506
507 } // namespace 507 } // namespace
508 508
509 } // namespace syncer 509 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/generic_change_processor.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698