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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 8680036: Move ResourceResponse struct into the Content API, since it's used in Chrome. While at it, I also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add gypi changes Created 9 years, 1 month 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: content/browser/renderer_host/resource_dispatcher_host_unittest.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_unittest.cc (revision 111374)
+++ content/browser/renderer_host/resource_dispatcher_host_unittest.cc (working copy)
@@ -22,8 +22,8 @@
#include "content/browser/renderer_host/resource_handler.h"
#include "content/browser/renderer_host/resource_message_filter.h"
#include "content/common/resource_messages.h"
-#include "content/common/resource_response.h"
#include "content/common/view_messages.h"
+#include "content/public/common/resource_response.h"
#include "net/base/net_errors.h"
#include "net/base/upload_data.h"
#include "net/http/http_util.h"
@@ -43,7 +43,7 @@
// Returns the resource response header structure for this request.
void GetResponseHead(const std::vector<IPC::Message>& messages,
- ResourceResponseHead* response_head) {
+ content::ResourceResponseHead* response_head) {
ASSERT_GE(messages.size(), 2U);
// The first messages should be received response.
@@ -1007,7 +1007,7 @@
accum_.GetClassifiedMessages(&msgs);
ASSERT_EQ(1U, msgs.size());
- ResourceResponseHead response_head;
+ content::ResourceResponseHead response_head;
GetResponseHead(msgs[0], &response_head);
ASSERT_EQ("text/html", response_head.mime_type);
}
@@ -1036,7 +1036,7 @@
accum_.GetClassifiedMessages(&msgs);
ASSERT_EQ(1U, msgs.size());
- ResourceResponseHead response_head;
+ content::ResourceResponseHead response_head;
GetResponseHead(msgs[0], &response_head);
ASSERT_EQ("image/jpeg", response_head.mime_type);
}
@@ -1064,7 +1064,7 @@
accum_.GetClassifiedMessages(&msgs);
ASSERT_EQ(1U, msgs.size());
- ResourceResponseHead response_head;
+ content::ResourceResponseHead response_head;
GetResponseHead(msgs[0], &response_head);
ASSERT_EQ("", response_head.mime_type);
}
@@ -1091,7 +1091,7 @@
accum_.GetClassifiedMessages(&msgs);
ASSERT_EQ(1U, msgs.size());
- ResourceResponseHead response_head;
+ content::ResourceResponseHead response_head;
GetResponseHead(msgs[0], &response_head);
ASSERT_EQ("text/plain", response_head.mime_type);
}
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/browser/renderer_host/resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698