OLD | NEW |
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 #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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "chrome/browser/sync/internal_api/write_transaction.h" | 10 #include "chrome/browser/sync/internal_api/write_transaction.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 node.Put(UNIQUE_SERVER_TAG, tag_name); | 54 node.Put(UNIQUE_SERVER_TAG, tag_name); |
55 node.Put(IS_DIR, true); | 55 node.Put(IS_DIR, true); |
56 node.Put(SERVER_IS_DIR, false); | 56 node.Put(SERVER_IS_DIR, false); |
57 node.Put(IS_UNSYNCED, false); | 57 node.Put(IS_UNSYNCED, false); |
58 node.Put(IS_UNAPPLIED_UPDATE, false); | 58 node.Put(IS_UNAPPLIED_UPDATE, false); |
59 node.Put(SERVER_VERSION, 20); | 59 node.Put(SERVER_VERSION, 20); |
60 node.Put(BASE_VERSION, 20); | 60 node.Put(BASE_VERSION, 20); |
61 node.Put(IS_DEL, false); | 61 node.Put(IS_DEL, false); |
62 node.Put(syncable::ID, ids->MakeServer(tag_name)); | 62 node.Put(syncable::ID, ids->MakeServer(tag_name)); |
63 sync_pb::EntitySpecifics specifics; | 63 sync_pb::EntitySpecifics specifics; |
64 syncable::AddDefaultExtensionValue(model_type, &specifics); | 64 syncable::AddDefaultFieldValue(model_type, &specifics); |
65 node.Put(SPECIFICS, specifics); | 65 node.Put(SPECIFICS, specifics); |
66 | 66 |
67 return true; | 67 return true; |
68 } | 68 } |
69 | 69 |
70 /* static */ | 70 /* static */ |
71 sync_api::ImmutableChangeRecordList | 71 sync_api::ImmutableChangeRecordList |
72 ProfileSyncServiceTestHelper::MakeSingletonChangeRecordList( | 72 ProfileSyncServiceTestHelper::MakeSingletonChangeRecordList( |
73 int64 node_id, sync_api::ChangeRecord::Action action) { | 73 int64 node_id, sync_api::ChangeRecord::Action action) { |
74 sync_api::ChangeRecord record; | 74 sync_api::ChangeRecord record; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 return callback_; | 145 return callback_; |
146 } | 146 } |
147 | 147 |
148 bool CreateRootHelper::success() { | 148 bool CreateRootHelper::success() { |
149 return success_; | 149 return success_; |
150 } | 150 } |
151 | 151 |
152 void CreateRootHelper::CreateRootCallback() { | 152 void CreateRootHelper::CreateRootCallback() { |
153 success_ = test_->CreateRoot(model_type_); | 153 success_ = test_->CreateRoot(model_type_); |
154 } | 154 } |
OLD | NEW |