OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ |
6 #define IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ | 6 #define IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ |
7 | 7 |
8 #include "base/ios/block_types.h" | 8 #import "base/ios/block_types.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "ios/web/public/test/web_test.h" | 10 #include "ios/web/public/test/web_test.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace web { | 13 namespace web { |
14 | 14 |
15 class WebState; | 15 class WebState; |
16 | 16 |
17 // Base test fixture that provides WebState for testing. | 17 // Base test fixture that provides WebState for testing. |
18 class WebTestWithWebState : public WebTest, | 18 class WebTestWithWebState : public WebTest, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // The web state for testing. | 55 // The web state for testing. |
56 std::unique_ptr<WebState> web_state_; | 56 std::unique_ptr<WebState> web_state_; |
57 // true if a task has been processed. | 57 // true if a task has been processed. |
58 bool processed_a_task_; | 58 bool processed_a_task_; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace web | 61 } // namespace web |
62 | 62 |
63 #endif // IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ | 63 #endif // IOS_WEB_PUBLIC_TEST_WEB_TEST_WITH_WEB_STATE_H_ |
OLD | NEW |