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

Unified Diff: mojo/fetcher/about_fetcher_unittest.cc

Issue 1342093002: Mandoline: let html_viewer handle more contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « mojo/fetcher/about_fetcher.cc ('k') | mojo/fetcher/network_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/fetcher/about_fetcher_unittest.cc
diff --git a/mojo/fetcher/about_fetcher_unittest.cc b/mojo/fetcher/about_fetcher_unittest.cc
index 81e46124de0ef1b58087a53e47e30a8b3d4d7850..79c487a21d4b950b4e1e29d3dd247746814ccbd0 100644
--- a/mojo/fetcher/about_fetcher_unittest.cc
+++ b/mojo/fetcher/about_fetcher_unittest.cc
@@ -160,7 +160,13 @@ TEST_F(AboutFetcherTest, AboutBlank) {
TEST_F(AboutFetcherTest, UnrecognizedURL) {
ConnectAndWait("about:some_unrecognized_url");
- ASSERT_EQ(0u, html_content_handler()->response_number());
+ ASSERT_EQ(1u, html_content_handler()->response_number());
+
+ const URLResponse* response = html_content_handler()->latest_response();
+ EXPECT_EQ("about:some_unrecognized_url", response->url);
+ EXPECT_EQ(404u, response->status_code);
+ EXPECT_EQ("text/html", response->mime_type);
+ EXPECT_FALSE(response->body.is_valid());
}
} // namespace
« no previous file with comments | « mojo/fetcher/about_fetcher.cc ('k') | mojo/fetcher/network_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698