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

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

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
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 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 5 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
6 6
7 #include "base/tracked.h" 7 #include "base/tracked.h"
8 #include "chrome/browser/sync/internal_api/write_transaction.h" 8 #include "chrome/browser/sync/internal_api/write_transaction.h"
9 #include "chrome/browser/sync/protocol/sync.pb.h" 9 #include "chrome/browser/sync/protocol/sync.pb.h"
10 #include "chrome/browser/sync/syncable/directory_manager.h" 10 #include "chrome/browser/sync/syncable/directory_manager.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 node.Put(BASE_VERSION, 20); 62 node.Put(BASE_VERSION, 20);
63 node.Put(IS_DEL, false); 63 node.Put(IS_DEL, false);
64 node.Put(syncable::ID, ids->MakeServer(tag_name)); 64 node.Put(syncable::ID, ids->MakeServer(tag_name));
65 sync_pb::EntitySpecifics specifics; 65 sync_pb::EntitySpecifics specifics;
66 syncable::AddDefaultExtensionValue(model_type, &specifics); 66 syncable::AddDefaultExtensionValue(model_type, &specifics);
67 node.Put(SPECIFICS, specifics); 67 node.Put(SPECIFICS, specifics);
68 68
69 return true; 69 return true;
70 } 70 }
71 71
72 sync_api::ImmutableChangeRecordList
Nicolas Zea 2011/09/16 22:23:54 Comment that this is static.
akalin 2011/09/16 22:56:04 Done.
73 ProfileSyncServiceTestHelper::MakeSingletonChangeRecordList(
74 int64 node_id, sync_api::ChangeRecord::Action action) {
75 sync_api::ChangeRecord record;
76 record.action = action;
77 record.id = node_id;
78 sync_api::ChangeRecordList records(1, record);
79 return sync_api::ImmutableChangeRecordList(&records);
80 }
81
72 AbstractProfileSyncServiceTest::AbstractProfileSyncServiceTest() 82 AbstractProfileSyncServiceTest::AbstractProfileSyncServiceTest()
73 : ui_thread_(BrowserThread::UI, &ui_loop_), 83 : ui_thread_(BrowserThread::UI, &ui_loop_),
74 db_thread_(BrowserThread::DB), 84 db_thread_(BrowserThread::DB),
75 io_thread_(BrowserThread::IO), 85 io_thread_(BrowserThread::IO),
76 token_service_(new TokenService) {} 86 token_service_(new TokenService) {}
77 87
78 AbstractProfileSyncServiceTest::~AbstractProfileSyncServiceTest() {} 88 AbstractProfileSyncServiceTest::~AbstractProfileSyncServiceTest() {}
79 89
80 void AbstractProfileSyncServiceTest::SetUp() { 90 void AbstractProfileSyncServiceTest::SetUp() {
81 db_thread_.Start(); 91 db_thread_.Start();
(...skipping 30 matching lines...) Expand all
112 } 122 }
113 123
114 CreateRootTask::~CreateRootTask() {} 124 CreateRootTask::~CreateRootTask() {}
115 void CreateRootTask::Run() { 125 void CreateRootTask::Run() {
116 success_ = test_->CreateRoot(model_type_); 126 success_ = test_->CreateRoot(model_type_);
117 } 127 }
118 128
119 bool CreateRootTask::success() { 129 bool CreateRootTask::success() {
120 return success_; 130 return success_;
121 } 131 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/abstract_profile_sync_service_test.h ('k') | chrome/browser/sync/glue/autofill_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698