Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Unified Diff: ios/web/public/test/test_web_view_content_view.mm

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/test/test_web_view_content_view.h ('k') | ios/web/public/test/web_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/test_web_view_content_view.mm
diff --git a/ios/web/public/test/test_web_view_content_view.mm b/ios/web/public/test/test_web_view_content_view.mm
deleted file mode 100644
index 3dbc9b885884a66bda9e78df788bfe3aacc5b636..0000000000000000000000000000000000000000
--- a/ios/web/public/test/test_web_view_content_view.mm
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "ios/web/public/test/test_web_view_content_view.h"
-
-#include "base/logging.h"
-#import "base/mac/scoped_nsobject.h"
-
-@interface TestWebViewContentView () {
- base::scoped_nsprotocol<id> _mockWebView;
- base::scoped_nsprotocol<id> _mockScrollView;
-}
-
-@end
-
-@implementation TestWebViewContentView
-
-- (instancetype)initWithMockWebView:(id)webView scrollView:(id)scrollView {
- self = [super initForTesting];
- if (self) {
- DCHECK(webView);
- DCHECK(scrollView);
- _mockWebView.reset([webView retain]);
- _mockScrollView.reset([scrollView retain]);
- }
- return self;
-}
-
-- (instancetype)initWithCoder:(NSCoder*)decoder {
- NOTREACHED();
- return nil;
-}
-
-- (instancetype)initWithFrame:(CGRect)frame {
- NOTREACHED();
- return nil;
-}
-
-#pragma mark Accessors
-
-- (UIScrollView*)scrollView {
- return static_cast<UIScrollView*>(_mockScrollView.get());
-}
-
-- (UIView*)webView {
- return static_cast<UIView*>(_mockWebView.get());
-}
-
-@end
« no previous file with comments | « ios/web/public/test/test_web_view_content_view.h ('k') | ios/web/public/test/web_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698