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

Unified Diff: ios/web/public/test/response_providers/file_based_response_provider.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 7 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
Index: ios/web/public/test/response_providers/file_based_response_provider.mm
diff --git a/ios/web/public/test/response_providers/file_based_response_provider.mm b/ios/web/public/test/response_providers/file_based_response_provider.mm
deleted file mode 100644
index 457a5f8854bcba66b9464ead21ef222a4a0b536a..0000000000000000000000000000000000000000
--- a/ios/web/public/test/response_providers/file_based_response_provider.mm
+++ /dev/null
@@ -1,32 +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/response_providers/file_based_response_provider.h"
-
-#include "base/files/file_path.h"
-#include "base/strings/sys_string_conversions.h"
-#import "ios/third_party/gcdwebserver/src/GCDWebServer/Responses/GCDWebServerFileResponse.h"
-
-namespace web {
-
-FileBasedResponseProvider::FileBasedResponseProvider(const base::FilePath& path)
- : response_provider_impl_(new FileBasedResponseProviderImpl(path)) {
-}
-
-FileBasedResponseProvider::~FileBasedResponseProvider() {
-}
-
-bool FileBasedResponseProvider::CanHandleRequest(const Request& request) {
- return response_provider_impl_->CanHandleRequest(request);
-}
-
-GCDWebServerResponse* FileBasedResponseProvider::GetGCDWebServerResponse(
- const Request& request) {
- const base::FilePath file_path =
- response_provider_impl_->BuildTargetPath(request.url);
- NSString* path = base::SysUTF8ToNSString(file_path.value());
- return [GCDWebServerFileResponse responseWithFile:path];
-}
-
-} // namespace web

Powered by Google App Engine
This is Rietveld 408576698