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

Unified Diff: content/common/page_state_serialization_unittest.cc

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 6 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
« no previous file with comments | « content/common/page_state_serialization.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/page_state_serialization_unittest.cc
diff --git a/content/common/page_state_serialization_unittest.cc b/content/common/page_state_serialization_unittest.cc
index e5c42a22916627ff4b891e65583c0a590b92d5a1..bd449378c378fb8a6eb14a208002b8ff13d14029 100644
--- a/content/common/page_state_serialization_unittest.cc
+++ b/content/common/page_state_serialization_unittest.cc
@@ -41,11 +41,11 @@ void ExpectEquality(const std::vector<T>& a, const std::vector<T>& b) {
}
template <>
-void ExpectEquality(const ResourceRequestBodyImpl::Element& a,
- const ResourceRequestBodyImpl::Element& b) {
+void ExpectEquality(const ResourceRequestBody::Element& a,
+ const ResourceRequestBody::Element& b) {
EXPECT_EQ(a.type(), b.type());
- if (a.type() == ResourceRequestBodyImpl::Element::TYPE_BYTES &&
- b.type() == ResourceRequestBodyImpl::Element::TYPE_BYTES) {
+ if (a.type() == ResourceRequestBody::Element::TYPE_BYTES &&
+ b.type() == ResourceRequestBody::Element::TYPE_BYTES) {
EXPECT_EQ(std::string(a.bytes(), a.length()),
std::string(b.bytes(), b.length()));
}
@@ -119,7 +119,7 @@ class PageStateSerializationTest : public testing::Test {
void PopulateHttpBody(ExplodedHttpBody* http_body,
std::vector<base::NullableString16>* referenced_files) {
- http_body->request_body = new ResourceRequestBodyImpl();
+ http_body->request_body = new ResourceRequestBody();
http_body->request_body->set_identifier(12345);
http_body->contains_passwords = false;
http_body->http_content_type = NS16("text/foo");
@@ -163,7 +163,7 @@ class PageStateSerializationTest : public testing::Test {
if (!is_child) {
frame_state->http_body.http_content_type = NS16("foo/bar");
- frame_state->http_body.request_body = new ResourceRequestBodyImpl();
+ frame_state->http_body.request_body = new ResourceRequestBody();
frame_state->http_body.request_body->set_identifier(789);
std::string test_body("first data block");
« no previous file with comments | « content/common/page_state_serialization.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698