| 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 CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
| 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/browser/mock_content_browser_client.h" | |
| 11 #include "content/test/browser_test_base.h" | 10 #include "content/test/browser_test_base.h" |
| 12 | 11 |
| 13 namespace content { | 12 class ShellMainDelegate; |
| 14 class ContentBrowserClient; | |
| 15 class ContentClient; | |
| 16 } | |
| 17 | 13 |
| 18 class ContentBrowserTest : public BrowserTestBase { | 14 class ContentBrowserTest : public BrowserTestBase { |
| 19 protected: | 15 protected: |
| 20 ContentBrowserTest(); | 16 ContentBrowserTest(); |
| 21 virtual ~ContentBrowserTest(); | 17 virtual ~ContentBrowserTest(); |
| 22 | 18 |
| 23 // testing::Test: | 19 // testing::Test: |
| 24 virtual void SetUp() OVERRIDE; | 20 virtual void SetUp() OVERRIDE; |
| 25 virtual void TearDown() OVERRIDE; | 21 virtual void TearDown() OVERRIDE; |
| 26 | 22 |
| 27 // BrowserTestBase: | 23 // BrowserTestBase: |
| 28 virtual void RunTestOnMainThreadLoop() OVERRIDE; | 24 virtual void RunTestOnMainThreadLoop() OVERRIDE; |
| 29 | 25 |
| 30 private: | 26 private: |
| 31 scoped_ptr<content::ContentClient> content_client_; | 27 scoped_ptr<ShellMainDelegate> shell_main_delegate_; |
| 32 scoped_ptr<content::ContentBrowserClient> content_browser_client_; | |
| 33 }; | 28 }; |
| 34 | 29 |
| 35 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_ | 30 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_H_ |
| OLD | NEW |