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 #import "ios/web/public/test/test_web_view_content_view.h" | 5 #import "ios/web/public/test/test_web_view_content_view.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
9 | 9 |
10 @interface TestWebViewContentView () { | 10 @interface TestWebViewContentView () { |
11 base::scoped_nsprotocol<id> _mockWebView; | 11 base::scoped_nsprotocol<id> _mockWebView; |
12 base::scoped_nsprotocol<id> _mockScrollView; | 12 base::scoped_nsprotocol<id> _mockScrollView; |
13 } | 13 } |
14 | 14 |
15 @end | 15 @end |
16 | 16 |
17 @implementation TestWebViewContentView | 17 @implementation TestWebViewContentView |
18 | 18 |
(...skipping 22 matching lines...) Expand all Loading... |
41 | 41 |
42 - (UIScrollView*)scrollView { | 42 - (UIScrollView*)scrollView { |
43 return static_cast<UIScrollView*>(_mockScrollView.get()); | 43 return static_cast<UIScrollView*>(_mockScrollView.get()); |
44 } | 44 } |
45 | 45 |
46 - (UIView*)webView { | 46 - (UIView*)webView { |
47 return static_cast<UIView*>(_mockWebView.get()); | 47 return static_cast<UIView*>(_mockWebView.get()); |
48 } | 48 } |
49 | 49 |
50 @end | 50 @end |
OLD | NEW |