| 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_
|
|
|