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

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

Issue 7918001: [Sync] Move ChangeRecord into its own file (change_record.{h,cc}) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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 | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/browser/net/gaia/token_service.h" 14 #include "chrome/browser/net/gaia/token_service.h"
15 #include "chrome/browser/sync/internal_api/change_record.h"
15 #include "chrome/browser/sync/profile_sync_factory_mock.h" 16 #include "chrome/browser/sync/profile_sync_factory_mock.h"
16 #include "chrome/browser/sync/syncable/model_type.h" 17 #include "chrome/browser/sync/syncable/model_type.h"
17 #include "content/browser/browser_thread.h" 18 #include "content/browser/browser_thread.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 class ProfileSyncService; 21 class ProfileSyncService;
21 class TestProfileSyncService; 22 class TestProfileSyncService;
22 23
23 namespace browser_sync { 24 namespace browser_sync {
24 class TestIdFactory; 25 class TestIdFactory;
25 } // namespace browser_sync 26 } // namespace browser_sync
26 27
27 namespace sync_api { 28 namespace sync_api {
28 struct UserShare; 29 struct UserShare;
29 } // namespace sync_api 30 } // namespace sync_api
30 31
31 class ProfileSyncServiceTestHelper { 32 class ProfileSyncServiceTestHelper {
32 public: 33 public:
33 static const std::string GetTagForType(syncable::ModelType model_type); 34 static const std::string GetTagForType(syncable::ModelType model_type);
34 35
35 static bool CreateRoot(syncable::ModelType model_type, 36 static bool CreateRoot(syncable::ModelType model_type,
36 sync_api::UserShare* service, 37 sync_api::UserShare* service,
37 browser_sync::TestIdFactory* ids); 38 browser_sync::TestIdFactory* ids);
39
40 static sync_api::ImmutableChangeRecordList MakeSingletonChangeRecordList(
41 int64 node_id, sync_api::ChangeRecord::Action action);
38 }; 42 };
39 43
40 class AbstractProfileSyncServiceTest : public testing::Test { 44 class AbstractProfileSyncServiceTest : public testing::Test {
41 public: 45 public:
42 AbstractProfileSyncServiceTest(); 46 AbstractProfileSyncServiceTest();
43 virtual ~AbstractProfileSyncServiceTest(); 47 virtual ~AbstractProfileSyncServiceTest();
44 48
45 virtual void SetUp(); 49 virtual void SetUp();
46 50
47 virtual void TearDown(); 51 virtual void TearDown();
(...skipping 20 matching lines...) Expand all
68 72
69 bool success(); 73 bool success();
70 74
71 private: 75 private:
72 AbstractProfileSyncServiceTest* test_; 76 AbstractProfileSyncServiceTest* test_;
73 syncable::ModelType model_type_; 77 syncable::ModelType model_type_;
74 bool success_; 78 bool success_;
75 }; 79 };
76 80
77 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 81 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698