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

Unified Diff: ios/web/public/test/test_native_content_provider.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_native_content_provider.h ('k') | ios/web/public/test/test_navigation_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/test_native_content_provider.mm
diff --git a/ios/web/public/test/test_native_content_provider.mm b/ios/web/public/test/test_native_content_provider.mm
deleted file mode 100644
index 91cf920b7c0f64fb7c99a58f20926fe3c2f7e637..0000000000000000000000000000000000000000
--- a/ios/web/public/test/test_native_content_provider.mm
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 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_native_content_provider.h"
-
-#include <map>
-
-#include "url/gurl.h"
-
-@implementation TestNativeContentProvider {
- std::map<GURL, id<CRWNativeContent>> _nativeContent;
-}
-
-- (void)setController:(id<CRWNativeContent>)controller forURL:(const GURL&)URL {
- _nativeContent[URL] = controller;
-}
-
-- (BOOL)hasControllerForURL:(const GURL&)URL {
- return _nativeContent.find(URL) != _nativeContent.end();
-}
-
-- (id<CRWNativeContent>)controllerForURL:(const GURL&)URL {
- auto nativeContent = _nativeContent.find(URL);
- if (nativeContent == _nativeContent.end()) {
- return nil;
- }
- return nativeContent->second;
-}
-
-- (id<CRWNativeContent>)controllerForURL:(const GURL&)URL
- withError:(NSError*)error
- isPost:(BOOL)isPost {
- NOTREACHED();
- return nil;
-}
-
-@end
« no previous file with comments | « ios/web/public/test/test_native_content_provider.h ('k') | ios/web/public/test/test_navigation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698