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

Unified Diff: ios/web/public/test/response_providers/data_response_provider.h

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/data_response_provider.h
diff --git a/ios/web/public/test/response_providers/data_response_provider.h b/ios/web/public/test/response_providers/data_response_provider.h
deleted file mode 100644
index 9c32c7008ad691148744b7939c3a87cc7354e79f..0000000000000000000000000000000000000000
--- a/ios/web/public/test/response_providers/data_response_provider.h
+++ /dev/null
@@ -1,39 +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.
-
-#ifndef IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DATA_RESPONSE_PROVIDER_H_
-#define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DATA_RESPONSE_PROVIDER_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#import "ios/web/public/test/response_providers/response_provider.h"
-#include "net/http/http_response_headers.h"
-
-namespace web {
-
-// An abstract ResponseProvider that returns a GCDWebServerDataResponse for a
-// request. This class encapsulates the logic to convert the response headers
-// and body received from |GetResponseHeadersAndBody| into a
-// GCDWebServerDataResponse.
-class DataResponseProvider : public ResponseProvider {
- public:
- // ResponseProvider implementation.
- GCDWebServerResponse* GetGCDWebServerResponse(const Request& request) final;
-
- // Returns the headers and the response body. Will only be called if the
- // provider can handle the request.
- // Note: This should actually be under protected but since this is used by
- // an adapter in order to work with the old MockHttpServer it is under
- // public.
- virtual void GetResponseHeadersAndBody(
- const Request& request,
- scoped_refptr<net::HttpResponseHeaders>* headers,
- std::string* response_body) = 0;
-};
-
-} // namespace web
-
-#endif // IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DATA_RESPONSE_PROVIDER_H_
« no previous file with comments | « ios/web/public/test/http_server_util.mm ('k') | ios/web/public/test/response_providers/data_response_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698