| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_WEB_INT_TEST_H_ | 5 #ifndef IOS_WEB_TEST_WEB_INT_TEST_H_ |
| 6 #define IOS_WEB_TEST_WEB_INT_TEST_H_ | 6 #define IOS_WEB_TEST_WEB_INT_TEST_H_ |
| 7 | 7 |
| 8 #import <WebKit/WebKit.h> | 8 #import <WebKit/WebKit.h> |
| 9 | 9 |
| 10 #include "ios/web/test/web_test.h" | 10 #include "ios/web/public/test/web_test.h" |
| 11 | 11 |
| 12 namespace web { | 12 namespace web { |
| 13 | 13 |
| 14 // A test fixture for integration tests that need to bring up the HttpServer. | 14 // A test fixture for integration tests that need to bring up the HttpServer. |
| 15 class WebIntTest : public WebTest { | 15 class WebIntTest : public WebTest { |
| 16 protected: | 16 protected: |
| 17 WebIntTest(); | 17 WebIntTest(); |
| 18 ~WebIntTest() override; | 18 ~WebIntTest() override; |
| 19 | 19 |
| 20 // WebTest methods. | 20 // WebTest methods. |
| 21 void SetUp() override; | 21 void SetUp() override; |
| 22 void TearDown() override; | 22 void TearDown() override; |
| 23 | 23 |
| 24 // Synchronously removes data from |data_store|. | 24 // Synchronously removes data from |data_store|. |
| 25 // |websiteDataTypes| is from the constants defined in | 25 // |websiteDataTypes| is from the constants defined in |
| 26 // "WebKit/WKWebsiteDataRecord". | 26 // "WebKit/WKWebsiteDataRecord". |
| 27 void RemoveWKWebViewCreatedData(WKWebsiteDataStore* data_store, | 27 void RemoveWKWebViewCreatedData(WKWebsiteDataStore* data_store, |
| 28 NSSet* websiteDataTypes); | 28 NSSet* websiteDataTypes); |
| 29 | 29 |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace web | 32 } // namespace web |
| 33 | 33 |
| 34 #endif // IOS_WEB_TEST_WEB_TEST_H_ | 34 #endif // IOS_WEB_TEST_WEB_TEST_H_ |
| OLD | NEW |