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

Side by Side Diff: chrome/browser/extensions/extension_settings_storage_unittest.h

Issue 7189029: Implement an initial extension settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use base::Closure for storage callback, style fixes, mac/windows fixes Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_STORAGE_UNITTEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_STORAGE_UNITTEST_H_
7 #pragma once
8
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 #include "base/message_loop.h"
12 #include "base/task.h"
13 #include "chrome/browser/extensions/extension_settings.h"
14 #include "content/browser/browser_thread.h"
15
16 // Parameter type for the value-parameterized tests.
17 typedef void (*ExtensionSettingsStorageTestParam)(
18 ExtensionSettings* settings,
19 const std::string& extension_id,
20 const ExtensionSettings::Callback& callback);
21
22 // Test fixture for ExtensionSettingsStorage tests. Tests are defined in
23 // extension_settings_storage_unittest.cc with configurations for both cached
24 // and non-cached leveldb storage, and cached no-op storage.
25 class ExtensionSettingsStorageTest
26 : public testing::TestWithParam<ExtensionSettingsStorageTestParam> {
27 public:
28 virtual void SetUp() OVERRIDE;
29 virtual void TearDown() OVERRIDE;
30
31 protected:
32 ExtensionSettingsStorage* storage_;
33
34 private:
35 ExtensionSettings* settings_;
36 MessageLoopForUI* ui_message_loop_;
37 BrowserThread* ui_thread_;
38 BrowserThread* file_thread_;
39 };
40
41 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_STORAGE_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698