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

Side by Side Diff: chrome/browser/value_store/value_store_unittest.h

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VALUE_STORE_VALUE_STORE_UNITTEST_H_ 5 #ifndef CHROME_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_
6 #define CHROME_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_ 6 #define CHROME_BROWSER_VALUE_STORE_VALUE_STORE_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 "chrome/browser/value_store/value_store.h" 15 #include "chrome/browser/value_store/value_store.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "content/test/test_browser_thread.h" 17 #include "content/public/test/test_browser_thread.h"
18 18
19 // Parameter type for the value-parameterized tests. 19 // Parameter type for the value-parameterized tests.
20 typedef ValueStore* (*ValueStoreTestParam)(const FilePath& file_path); 20 typedef ValueStore* (*ValueStoreTestParam)(const FilePath& file_path);
21 21
22 // Test fixture for ValueStore tests. Tests are defined in 22 // Test fixture for ValueStore tests. Tests are defined in
23 // settings_storage_unittest.cc with configurations for both cached 23 // settings_storage_unittest.cc with configurations for both cached
24 // and non-cached leveldb storage, and cached no-op storage. 24 // and non-cached leveldb storage, and cached no-op storage.
25 class ValueStoreTest : public testing::TestWithParam<ValueStoreTestParam> { 25 class ValueStoreTest : public testing::TestWithParam<ValueStoreTestParam> {
26 public: 26 public:
27 ValueStoreTest(); 27 ValueStoreTest();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 private: 66 private:
67 ScopedTempDir temp_dir_; 67 ScopedTempDir temp_dir_;
68 68
69 // Need these so that the DCHECKs for running on FILE or UI threads pass. 69 // Need these so that the DCHECKs for running on FILE or UI threads pass.
70 MessageLoop message_loop_; 70 MessageLoop message_loop_;
71 content::TestBrowserThread ui_thread_; 71 content::TestBrowserThread ui_thread_;
72 content::TestBrowserThread file_thread_; 72 content::TestBrowserThread file_thread_;
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_ 75 #endif // CHROME_BROWSER_VALUE_STORE_VALUE_STORE_UNITTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_unittest.cc ('k') | chrome/browser/visitedlink/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698