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

Side by Side Diff: chrome/browser/sync/abstract_profile_sync_service_test.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 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
« no previous file with comments | « chrome/browser/sync/DEPS ('k') | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "chrome/browser/signin/token_service.h" 15 #include "chrome/browser/signin/token_service.h"
16 #include "chrome/browser/sync/profile_sync_components_factory_mock.h" 16 #include "chrome/browser/sync/profile_sync_components_factory_mock.h"
17 #include "content/public/test/test_browser_thread.h" 17 #include "content/public/test/test_browser_thread.h"
18 #include "sync/internal_api/public/change_record.h" 18 #include "sync/internal_api/public/change_record.h"
19 #include "sync/internal_api/public/syncable/model_type.h" 19 #include "sync/internal_api/public/syncable/model_type.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 class ProfileSyncService; 22 class ProfileSyncService;
23 class TestProfileSyncService; 23 class TestProfileSyncService;
24 24
25 namespace csync { 25 namespace syncer {
26 class TestIdFactory; 26 class TestIdFactory;
27 } // namespace csync 27 } // namespace syncer
28 28
29 namespace csync { 29 namespace syncer {
30 struct UserShare; 30 struct UserShare;
31 } // namespace csync 31 } // namespace syncer
32 32
33 class ProfileSyncServiceTestHelper { 33 class ProfileSyncServiceTestHelper {
34 public: 34 public:
35 static const std::string GetTagForType(syncable::ModelType model_type); 35 static const std::string GetTagForType(syncable::ModelType model_type);
36 36
37 static bool CreateRoot(syncable::ModelType model_type, 37 static bool CreateRoot(syncable::ModelType model_type,
38 csync::UserShare* service, 38 syncer::UserShare* service,
39 csync::TestIdFactory* ids); 39 syncer::TestIdFactory* ids);
40 40
41 static csync::ImmutableChangeRecordList MakeSingletonChangeRecordList( 41 static syncer::ImmutableChangeRecordList MakeSingletonChangeRecordList(
42 int64 node_id, csync::ChangeRecord::Action action); 42 int64 node_id, syncer::ChangeRecord::Action action);
43 43
44 // Deletions must provide an EntitySpecifics for the deleted data. 44 // Deletions must provide an EntitySpecifics for the deleted data.
45 static csync::ImmutableChangeRecordList 45 static syncer::ImmutableChangeRecordList
46 MakeSingletonDeletionChangeRecordList( 46 MakeSingletonDeletionChangeRecordList(
47 int64 node_id, 47 int64 node_id,
48 const sync_pb::EntitySpecifics& specifics); 48 const sync_pb::EntitySpecifics& specifics);
49 }; 49 };
50 50
51 class AbstractProfileSyncServiceTest : public testing::Test { 51 class AbstractProfileSyncServiceTest : public testing::Test {
52 public: 52 public:
53 AbstractProfileSyncServiceTest(); 53 AbstractProfileSyncServiceTest();
54 virtual ~AbstractProfileSyncServiceTest(); 54 virtual ~AbstractProfileSyncServiceTest();
55 55
(...skipping 26 matching lines...) Expand all
82 private: 82 private:
83 void CreateRootCallback(); 83 void CreateRootCallback();
84 84
85 base::Closure callback_; 85 base::Closure callback_;
86 AbstractProfileSyncServiceTest* test_; 86 AbstractProfileSyncServiceTest* test_;
87 syncable::ModelType model_type_; 87 syncable::ModelType model_type_;
88 bool success_; 88 bool success_;
89 }; 89 };
90 90
91 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 91 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/DEPS ('k') | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698