OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
7 | 7 |
| 8 #include "base/compiler_specific.h" |
8 #include "base/macros.h" | 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 class ContentClient; | 14 class ContentClient; |
14 class ContentBrowserClient; | 15 class ContentBrowserClient; |
15 class TestBrowserContext; | 16 class TestBrowserContext; |
16 } | 17 } |
17 | 18 |
(...skipping 13 matching lines...) Expand all Loading... |
31 ExtensionsTest(); | 32 ExtensionsTest(); |
32 virtual ~ExtensionsTest(); | 33 virtual ~ExtensionsTest(); |
33 | 34 |
34 content::TestBrowserContext* browser_context() { | 35 content::TestBrowserContext* browser_context() { |
35 return browser_context_.get(); | 36 return browser_context_.get(); |
36 } | 37 } |
37 TestExtensionsBrowserClient* extensions_browser_client() { | 38 TestExtensionsBrowserClient* extensions_browser_client() { |
38 return extensions_browser_client_.get(); | 39 return extensions_browser_client_.get(); |
39 } | 40 } |
40 | 41 |
| 42 // testing::Test overrides: |
| 43 virtual void SetUp() OVERRIDE; |
| 44 virtual void TearDown() OVERRIDE; |
| 45 |
41 private: | 46 private: |
42 scoped_ptr<content::ContentClient> content_client_; | 47 scoped_ptr<content::ContentClient> content_client_; |
43 scoped_ptr<content::ContentBrowserClient> content_browser_client_; | 48 scoped_ptr<content::ContentBrowserClient> content_browser_client_; |
44 scoped_ptr<content::TestBrowserContext> browser_context_; | 49 scoped_ptr<content::TestBrowserContext> browser_context_; |
45 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; | 50 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; |
46 | 51 |
47 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); | 52 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); |
48 }; | 53 }; |
49 | 54 |
50 } // namespace extensions | 55 } // namespace extensions |
51 | 56 |
52 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 57 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
OLD | NEW |