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

Side by Side Diff: components/sync_driver/generic_change_processor_unittest.cc

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "components/sync_driver/data_type_error_handler_mock.h" 11 #include "components/sync_driver/data_type_error_handler_mock.h"
12 #include "components/sync_driver/sync_api_component_factory.h" 12 #include "components/sync_driver/sync_api_component_factory.h"
13 #include "sync/api/attachments/attachment_service_impl.h" 13 #include "sync/api/attachments/attachment_service_impl.h"
14 #include "sync/api/fake_syncable_service.h" 14 #include "sync/api/fake_syncable_service.h"
15 #include "sync/api/sync_change.h" 15 #include "sync/api/sync_change.h"
16 #include "sync/api/sync_merge_result.h" 16 #include "sync/api/sync_merge_result.h"
17 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" 17 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h"
18 #include "sync/internal_api/public/attachments/fake_attachment_store.h" 18 #include "sync/internal_api/public/attachments/fake_attachment_store.h"
19 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" 19 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h"
20 #include "sync/internal_api/public/base/model_type.h" 20 #include "sync/internal_api/public/base/model_type.h"
21 #include "sync/internal_api/public/read_node.h" 21 #include "sync/internal_api/public/read_node.h"
22 #include "sync/internal_api/public/read_transaction.h" 22 #include "sync/internal_api/public/read_transaction.h"
23 #include "sync/internal_api/public/sync_encryption_handler.h" 23 #include "sync/internal_api/public/sync_encryption_handler.h"
24 #include "sync/internal_api/public/test/test_user_share.h" 24 #include "sync/internal_api/public/test/test_user_share.h"
25 #include "sync/internal_api/public/user_share.h" 25 #include "sync/internal_api/public/user_share.h"
26 #include "sync/internal_api/public/write_node.h" 26 #include "sync/internal_api/public/write_node.h"
27 #include "sync/internal_api/public/write_transaction.h" 27 #include "sync/internal_api/public/write_transaction.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 namespace browser_sync { 30 namespace sync_driver {
31 31
32 namespace { 32 namespace {
33 33
34 const char kTestData[] = "some data"; 34 const char kTestData[] = "some data";
35 35
36 // A mock that keeps track of attachments passed to StoreAttachments. 36 // A mock that keeps track of attachments passed to StoreAttachments.
37 class MockAttachmentService : public syncer::AttachmentServiceImpl { 37 class MockAttachmentService : public syncer::AttachmentServiceImpl {
38 public: 38 public:
39 MockAttachmentService(); 39 MockAttachmentService();
40 virtual ~MockAttachmentService(); 40 virtual ~MockAttachmentService();
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 syncer::ReadTransaction read_transaction(FROM_HERE, user_share()); 412 syncer::ReadTransaction read_transaction(FROM_HERE, user_share());
413 syncer::ReadNode node(&read_transaction); 413 syncer::ReadNode node(&read_transaction);
414 ASSERT_EQ(node.InitByClientTagLookup(syncer::PREFERENCES, tag), 414 ASSERT_EQ(node.InitByClientTagLookup(syncer::PREFERENCES, tag),
415 syncer::BaseNode::INIT_OK); 415 syncer::BaseNode::INIT_OK);
416 syncer::AttachmentIdList attachment_ids = node.GetAttachmentIds(); 416 syncer::AttachmentIdList attachment_ids = node.GetAttachmentIds();
417 EXPECT_EQ(1U, attachment_ids.size()); 417 EXPECT_EQ(1U, attachment_ids.size());
418 } 418 }
419 419
420 } // namespace 420 } // namespace
421 421
422 } // namespace browser_sync 422 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor_factory.cc ('k') | components/sync_driver/model_association_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698