OLD | NEW |
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 "chrome/browser/extensions/settings/settings_storage_cache.h" | 7 #include "chrome/browser/extensions/settings/settings_storage_cache.h" |
8 #include "chrome/browser/extensions/settings/in_memory_settings_storage.h" | 8 #include "chrome/browser/extensions/settings/in_memory_settings_storage.h" |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 SettingsStorage* Param( | 14 SettingsStorage* Param( |
15 const FilePath& file_path, const std::string& extension_id) { | 15 const FilePath& file_path, const std::string& extension_id) { |
16 return new SettingsStorageCache( | 16 return new SettingsStorageCache( |
17 new InMemorySettingsStorage()); | 17 new InMemorySettingsStorage()); |
18 } | 18 } |
19 | 19 |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 INSTANTIATE_TEST_CASE_P( | 22 INSTANTIATE_TEST_CASE_P( |
23 SettingsStorageCache, | 23 SettingsStorageCache, |
24 SettingsStorageTest, | 24 ExtensionSettingsStorageTest, |
25 testing::Values(&Param)); | 25 testing::Values(&Param)); |
26 | 26 |
27 } // namespace extensions | 27 } // namespace extensions |
OLD | NEW |