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_TEST_NATIVE_CONTENT_PROVIDER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_PROVIDER_H_ |
6 #define IOS_WEB_PUBLIC_TEST_TEST_NATIVE_CONTENT_PROVIDER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_PROVIDER_H_ |
7 | 7 |
8 #import "ios/web/public/web_state/ui/crw_native_content_provider.h" | 8 #import "ios/web/public/web_state/ui/crw_native_content_provider.h" |
9 | 9 |
10 @protocol CRWNativeContent; | 10 @protocol CRWNativeContent; |
11 | 11 |
12 // A test class that will return CRWNativeContent for specified URLs. | 12 // A test class that will return CRWNativeContent for specified URLs. |
13 @interface TestNativeContentProvider : NSObject<CRWNativeContentProvider> | 13 @interface TestNativeContentProvider : NSObject<CRWNativeContentProvider> |
14 | 14 |
15 // Add a |CRWNativeContent| for |URL|. | 15 // Add a |CRWNativeContent| for |URL|. |
16 - (void)setController:(id<CRWNativeContent>)controller forURL:(const GURL&)URL; | 16 - (void)setController:(id<CRWNativeContent>)controller forURL:(const GURL&)URL; |
17 | 17 |
18 @end | 18 @end |
19 | 19 |
20 #endif // IOS_WEB_PUBLIC_TEST_TEST_NATIVE_CONTENT_PROVIDER_H_ | 20 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_PROVIDER_H_ |
OLD | NEW |