OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_WEB_CHROME_WEB_TEST_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_CHROME_WEB_TEST_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #import "ios/web/public/test/web_test_with_web_state.h" |
| 11 |
| 12 class TestChromeBrowserState; |
| 13 |
| 14 // An abstract class of tests that need to create real web controllers. |
| 15 class ChromeWebTest : public web::WebTestWithWebState { |
| 16 public: |
| 17 ~ChromeWebTest() override; |
| 18 |
| 19 protected: |
| 20 ChromeWebTest(); |
| 21 // WebTest implementation. |
| 22 void SetUp() override; |
| 23 void TearDown() override; |
| 24 |
| 25 // WebTestWithWebController |
| 26 web::BrowserState* GetBrowserState() override; |
| 27 |
| 28 std::unique_ptr<TestChromeBrowserState> chrome_browser_state_; |
| 29 }; |
| 30 |
| 31 #endif // IOS_CHROME_BROWSER_WEB_CHROME_WEB_TEST_H_ |
OLD | NEW |