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 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/scoped_temp_dir.h" | 14 #include "base/scoped_temp_dir.h" |
15 #include "base/task.h" | |
16 #include "chrome/browser/extensions/settings/settings_backend.h" | 15 #include "chrome/browser/extensions/settings/settings_backend.h" |
17 #include "chrome/browser/extensions/settings/settings_frontend.h" | 16 #include "chrome/browser/extensions/settings/settings_frontend.h" |
18 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
19 #include "content/test/test_browser_thread.h" | 18 #include "content/test/test_browser_thread.h" |
20 | 19 |
21 namespace extensions { | 20 namespace extensions { |
22 | 21 |
23 // Parameter type for the value-parameterized tests. | 22 // Parameter type for the value-parameterized tests. |
24 typedef SettingsStorage* (*SettingsStorageTestParam)( | 23 typedef SettingsStorage* (*SettingsStorageTestParam)( |
25 const FilePath& file_path, const std::string& extension_id); | 24 const FilePath& file_path, const std::string& extension_id); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 73 |
75 // Need these so that the DCHECKs for running on FILE or UI threads pass. | 74 // Need these so that the DCHECKs for running on FILE or UI threads pass. |
76 MessageLoop message_loop_; | 75 MessageLoop message_loop_; |
77 content::TestBrowserThread ui_thread_; | 76 content::TestBrowserThread ui_thread_; |
78 content::TestBrowserThread file_thread_; | 77 content::TestBrowserThread file_thread_; |
79 }; | 78 }; |
80 | 79 |
81 } // namespace extensions | 80 } // namespace extensions |
82 | 81 |
83 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ | 82 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_STORAGE_UNITTEST_H_ |
OLD | NEW |