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

Side by Side Diff: chrome/browser/extensions/settings/settings_leveldb_storage_unittest.cc

Issue 8670012: Extension Settings API: move the API functions into an object SettingsNamepace, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bug / sync Created 9 years, 1 month 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/extensions/settings/settings_storage_unittest.h" 5 #include "chrome/browser/extensions/settings/settings_storage_unittest.h"
6 6
7 #include "base/memory/ref_counted.h"
7 #include "chrome/browser/extensions/settings/settings_leveldb_storage.h" 8 #include "chrome/browser/extensions/settings/settings_leveldb_storage.h"
8 9
9 namespace extensions { 10 namespace extensions {
10 11
11 namespace { 12 namespace {
12 13
13 SettingsStorage* Param( 14 SettingsStorage* Param(
14 const FilePath& file_path, const std::string& extension_id) { 15 const FilePath& file_path, const std::string& extension_id) {
15 return SettingsLeveldbStorage::Factory().Create(file_path, extension_id); 16 return scoped_refptr<SettingsStorageFactory>(
17 new SettingsLeveldbStorage::Factory())->Create(file_path, extension_id);
16 } 18 }
17 19
18 } // namespace 20 } // namespace
19 21
20 INSTANTIATE_TEST_CASE_P( 22 INSTANTIATE_TEST_CASE_P(
21 SettingsLeveldbStorage, 23 SettingsLeveldbStorage,
22 ExtensionSettingsStorageTest, 24 ExtensionSettingsStorageTest,
23 testing::Values(&Param)); 25 testing::Values(&Param));
24 26
25 } // namespace extensions 27 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings/settings_leveldb_storage.h ('k') | chrome/browser/extensions/settings/settings_namespace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698