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_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_H_ |
6 #define IOS_WEB_PUBLIC_TEST_TEST_NATIVE_CONTENT_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_H_ |
7 | 7 |
8 #import "ios/web/public/web_state/ui/crw_native_content.h" | 8 #import "ios/web/public/web_state/ui/crw_native_content.h" |
9 | 9 |
10 // A test class that implement CRWNativeContent. | 10 // A test class that implement CRWNativeContent. |
11 @interface TestNativeContent : NSObject<CRWNativeContent> | 11 @interface TestNativeContent : NSObject<CRWNativeContent> |
12 // Inits the CRWNativeContent. | 12 // Inits the CRWNativeContent. |
13 // |URL| will be returned by the |url| method of the object. | 13 // |URL| will be returned by the |url| method of the object. |
14 // If |virtualURL| is valid, it will be returned by the |virtualURL| method. | 14 // If |virtualURL| is valid, it will be returned by the |virtualURL| method. |
15 // If not, the object will pretend it does not implement |virtualURL|. | 15 // If not, the object will pretend it does not implement |virtualURL|. |
16 - (instancetype)initWithURL:(const GURL&)URL | 16 - (instancetype)initWithURL:(const GURL&)URL |
17 virtualURL:(const GURL&)virtualURL NS_DESIGNATED_INITIALIZER; | 17 virtualURL:(const GURL&)virtualURL NS_DESIGNATED_INITIALIZER; |
18 | 18 |
19 - (instancetype)init NS_UNAVAILABLE; | 19 - (instancetype)init NS_UNAVAILABLE; |
20 @end | 20 @end |
21 | 21 |
22 #endif // IOS_WEB_PUBLIC_TEST_TEST_NATIVE_CONTENT_H_ | 22 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NATIVE_CONTENT_H_ |
OLD | NEW |