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

Unified Diff: ios/web/public/test/response_providers/string_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/string_response_provider.h
diff --git a/ios/web/public/test/response_providers/string_response_provider.h b/ios/web/public/test/response_providers/string_response_provider.h
deleted file mode 100644
index 2b20d7dc7a897ee858a5e4f1ae0627fc198cc687..0000000000000000000000000000000000000000
--- a/ios/web/public/test/response_providers/string_response_provider.h
+++ /dev/null
@@ -1,36 +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_STRING_RESPONSE_PROVIDER_H_
-#define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_STRING_RESPONSE_PROVIDER_H_
-
-#include <string>
-
-#include "base/macros.h"
-#import "ios/web/public/test/response_providers/data_response_provider.h"
-
-namespace web {
-
-// A response provider that returns a string for all requests. Used for testing
-// purposes.
-class StringResponseProvider : public web::DataResponseProvider {
- public:
- explicit StringResponseProvider(const std::string& response_body);
-
- // web::DataResponseProvider methods.
- bool CanHandleRequest(const Request& request) override;
- void GetResponseHeadersAndBody(
- const Request& request,
- scoped_refptr<net::HttpResponseHeaders>* headers,
- std::string* response_body) override;
-
- private:
- // The string that is returned in the response body.
- std::string response_body_;
- DISALLOW_COPY_AND_ASSIGN(StringResponseProvider);
-};
-
-} // namespace web
-
-#endif // IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_STRING_RESPONSE_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698