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

Unified Diff: util/net/http_multipart_builder_test.cc

Issue 799083003: util_test: Don’t crash when run from the wrong location (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback, round 2 Created 6 years 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 | « no previous file | util/net/http_transport_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/net/http_multipart_builder_test.cc
diff --git a/util/net/http_multipart_builder_test.cc b/util/net/http_multipart_builder_test.cc
index 761580e7b20536fd49b0dce2630adb7e467c815f..1e8d59458f7ff8d92375716167cd5e649c2b7c4f 100644
--- a/util/net/http_multipart_builder_test.cc
+++ b/util/net/http_multipart_builder_test.cc
@@ -110,6 +110,7 @@ TEST(HTTPMultipartBuilder, ThreeFileAttachments) {
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
+ ASSERT_EQ(16u, lines.size());
auto lines_it = lines.begin();
const std::string& boundary = *lines_it++;
@@ -184,6 +185,7 @@ TEST(HTTPMultipartBuilder, OverwriteFileAttachment) {
ASSERT_TRUE(body.get());
std::string contents = ReadStreamToString(body.get());
auto lines = SplitCRLF(contents);
+ ASSERT_EQ(15u, lines.size());
auto lines_it = lines.begin();
const std::string& boundary = *lines_it++;
« no previous file with comments | « no previous file | util/net/http_transport_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698