summaryrefslogtreecommitdiffstats
path: root/extensions/browser/guest_view/web_view/web_view_apitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/browser/guest_view/web_view/web_view_apitest.cc')
-rw-r--r--extensions/browser/guest_view/web_view/web_view_apitest.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.cc b/extensions/browser/guest_view/web_view/web_view_apitest.cc
index 5857b73..e4ca00b 100644
--- a/extensions/browser/guest_view/web_view/web_view_apitest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_apitest.cc
@@ -48,11 +48,6 @@ const char kTestServerPort[] = "testServer.port";
const char kTestWebSocketPort[] = "testWebSocketPort";
const char kSitePerProcess[] = "sitePerProcess";
-class EmptyHttpResponse : public net::test_server::HttpResponse {
- public:
- std::string ToResponseString() const override { return std::string(); }
-};
-
// Handles |request| by serving a redirect response if the |User-Agent| is
// foobar.
static scoped_ptr<net::test_server::HttpResponse> UserAgentResponseHandler(
@@ -122,7 +117,8 @@ scoped_ptr<net::test_server::HttpResponse> EmptyResponseHandler(
const net::test_server::HttpRequest& request) {
if (base::StartsWith(path, request.relative_url,
base::CompareCase::SENSITIVE)) {
- return scoped_ptr<net::test_server::HttpResponse>(new EmptyHttpResponse);
+ return scoped_ptr<net::test_server::HttpResponse>(
+ new net::test_server::RawHttpResponse("", ""));
}
return scoped_ptr<net::test_server::HttpResponse>();