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/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // test-specific methods on it. | 40 // test-specific methods on it. |
41 TestExtensionsBrowserClient* extensions_browser_client() { | 41 TestExtensionsBrowserClient* extensions_browser_client() { |
42 return extensions_browser_client_.get(); | 42 return extensions_browser_client_.get(); |
43 } | 43 } |
44 | 44 |
45 // testing::Test overrides: | 45 // testing::Test overrides: |
46 void SetUp() override; | 46 void SetUp() override; |
47 void TearDown() override; | 47 void TearDown() override; |
48 | 48 |
49 private: | 49 private: |
| 50 // TODO(yoz): Add a NotificationService here; it's used widely enough. |
50 scoped_ptr<content::ContentClient> content_client_; | 51 scoped_ptr<content::ContentClient> content_client_; |
51 scoped_ptr<content::ContentBrowserClient> content_browser_client_; | 52 scoped_ptr<content::ContentBrowserClient> content_browser_client_; |
52 scoped_ptr<content::BrowserContext> browser_context_; | 53 scoped_ptr<content::BrowserContext> browser_context_; |
53 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; | 54 scoped_ptr<TestExtensionsBrowserClient> extensions_browser_client_; |
54 | 55 |
55 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); | 56 DISALLOW_COPY_AND_ASSIGN(ExtensionsTest); |
56 }; | 57 }; |
57 | 58 |
58 } // namespace extensions | 59 } // namespace extensions |
59 | 60 |
60 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ | 61 #endif // EXTENSIONS_BROWSER_EXTENSIONS_TEST_H_ |
OLD | NEW |