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

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

Issue 996473005: Revert of [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "components/sync_driver/device_info_data_type_controller.h" 10 #include "components/sync_driver/device_info_data_type_controller.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 60 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
61 syncer::ModelType type) override { 61 syncer::ModelType type) override {
62 // Shouldn't be called for this test. 62 // Shouldn't be called for this test.
63 NOTREACHED(); 63 NOTREACHED();
64 return base::WeakPtr<syncer::SyncableService>(); 64 return base::WeakPtr<syncer::SyncableService>();
65 } 65 }
66 66
67 scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 67 scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
68 scoped_ptr<syncer::AttachmentStore> attachment_store, 68 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
69 const syncer::UserShare& user_share, 69 const syncer::UserShare& user_share,
70 const std::string& store_birthday, 70 const std::string& store_birthday,
71 syncer::ModelType model_type, 71 syncer::ModelType model_type,
72 syncer::AttachmentService::Delegate* delegate) override { 72 syncer::AttachmentService::Delegate* delegate) override {
73 // Shouldn't be called for this test. 73 // Shouldn't be called for this test.
74 NOTREACHED(); 74 NOTREACHED();
75 return scoped_ptr<syncer::AttachmentService>(); 75 return scoped_ptr<syncer::AttachmentService>();
76 } 76 }
77 77
78 void OnLoadFinished(syncer::ModelType type, syncer::SyncError error) { 78 void OnLoadFinished(syncer::ModelType type, syncer::SyncError error) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 controller_->Stop(); 139 controller_->Stop();
140 // Destroy |local_device_| and |controller_| out of order 140 // Destroy |local_device_| and |controller_| out of order
141 // to verify that the controller doesn't crash in the destructor. 141 // to verify that the controller doesn't crash in the destructor.
142 local_device_.reset(); 142 local_device_.reset();
143 controller_ = NULL; 143 controller_ = NULL;
144 } 144 }
145 145
146 } // namespace 146 } // namespace
147 147
148 } // namespace sync_driver 148 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.h ('k') | components/sync_driver/fake_generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698