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 |