OLD | NEW |
(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/file_util.h" |
| 12 #include "base/message_loop.h" |
| 13 #include "base/task.h" |
| 14 #include "chrome/browser/extensions/extension_settings.h" |
| 15 #include "content/browser/browser_thread.h" |
| 16 |
| 17 // Test fixture for ExtensionSettingsStorage tests. |
| 18 // Tests are defined in extension_settings_storage_unittest.cc and run using |
| 19 // gtest's test fixtures feature for storage types LEVELDB, LEVELDB|CACHED, and |
| 20 // NOOP|CACHED. |
| 21 class ExtensionSettingsStorageTest : public testing::TestWithParam<int> { |
| 22 public: |
| 23 void SetUp(); |
| 24 void TearDown(); |
| 25 |
| 26 protected: |
| 27 ExtensionSettingsStorage* storage_; |
| 28 |
| 29 private: |
| 30 ExtensionSettings* settings_; |
| 31 MessageLoopForUI* ui_message_loop_; |
| 32 BrowserThread* ui_thread_; |
| 33 BrowserThread* file_thread_; |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_STORAGE_UNITTEST_H_ |
OLD | NEW |