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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_unittest.cc

Issue 2314363002: extensions: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Comment addressed Created 4 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
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 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ExtensionSettingsSyncTest() 183 ExtensionSettingsSyncTest()
184 : ui_thread_(BrowserThread::UI, base::MessageLoop::current()), 184 : ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
185 file_thread_(BrowserThread::FILE, base::MessageLoop::current()), 185 file_thread_(BrowserThread::FILE, base::MessageLoop::current()),
186 storage_factory_(new TestValueStoreFactory()), 186 storage_factory_(new TestValueStoreFactory()),
187 sync_processor_(new MockSyncChangeProcessor), 187 sync_processor_(new MockSyncChangeProcessor),
188 sync_processor_wrapper_(new syncer::SyncChangeProcessorWrapperForTest( 188 sync_processor_wrapper_(new syncer::SyncChangeProcessorWrapperForTest(
189 sync_processor_.get())) {} 189 sync_processor_.get())) {}
190 190
191 void SetUp() override { 191 void SetUp() override {
192 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 192 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
193 profile_.reset(new TestingProfile(temp_dir_.path())); 193 profile_.reset(new TestingProfile(temp_dir_.GetPath()));
194 storage_factory_->Reset(); 194 storage_factory_->Reset();
195 frontend_ = 195 frontend_ =
196 StorageFrontend::CreateForTesting(storage_factory_, profile_.get()); 196 StorageFrontend::CreateForTesting(storage_factory_, profile_.get());
197 197
198 ExtensionsBrowserClient::Get() 198 ExtensionsBrowserClient::Get()
199 ->GetExtensionSystemFactory() 199 ->GetExtensionSystemFactory()
200 ->SetTestingFactoryAndUse(profile_.get(), 200 ->SetTestingFactoryAndUse(profile_.get(),
201 &MockExtensionSystemFactoryFunction); 201 &MockExtensionSystemFactoryFunction);
202 202
203 EventRouterFactory::GetInstance()->SetTestingFactory(profile_.get(), 203 EventRouterFactory::GetInstance()->SetTestingFactory(profile_.get(),
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 settings_namespace::SYNC, 1408 settings_namespace::SYNC,
1409 base::Bind(&UnlimitedSyncStorageTestCallback)); 1409 base::Bind(&UnlimitedSyncStorageTestCallback));
1410 frontend_->RunWithStorage(extension, 1410 frontend_->RunWithStorage(extension,
1411 settings_namespace::LOCAL, 1411 settings_namespace::LOCAL,
1412 base::Bind(&UnlimitedLocalStorageTestCallback)); 1412 base::Bind(&UnlimitedLocalStorageTestCallback));
1413 1413
1414 base::RunLoop().RunUntilIdle(); 1414 base::RunLoop().RunUntilIdle();
1415 } 1415 }
1416 1416
1417 } // namespace extensions 1417 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698