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

Unified Diff: net/http/http_network_layer_unittest.cc

Issue 11572039: Make HttpNetworkLayer subscribe to power events on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« net/http/http_network_layer.h ('K') | « net/http/http_network_layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer_unittest.cc
diff --git a/net/http/http_network_layer_unittest.cc b/net/http/http_network_layer_unittest.cc
index 08917245ea86e20cf5ce157571e46dab7efc9b7d..f5e7747317480e63d087831e452c1fd6815a0aec 100644
--- a/net/http/http_network_layer_unittest.cc
+++ b/net/http/http_network_layer_unittest.cc
@@ -60,26 +60,6 @@ TEST_F(HttpNetworkLayerTest, CreateAndDestroy) {
EXPECT_TRUE(trans.get() != NULL);
}
-TEST_F(HttpNetworkLayerTest, Suspend) {
- scoped_ptr<HttpTransaction> trans;
- int rv = factory_->CreateTransaction(&trans, NULL);
- EXPECT_EQ(OK, rv);
-
- trans.reset();
-
- factory_->OnSuspend();
-
- rv = factory_->CreateTransaction(&trans, NULL);
- EXPECT_EQ(ERR_NETWORK_IO_SUSPENDED, rv);
-
- ASSERT_TRUE(trans == NULL);
-
- factory_->OnResume();
-
- rv = factory_->CreateTransaction(&trans, NULL);
- EXPECT_EQ(OK, rv);
-}
-
TEST_F(HttpNetworkLayerTest, GET) {
MockRead data_reads[] = {
MockRead("HTTP/1.0 200 OK\r\n\r\n"),
« net/http/http_network_layer.h ('K') | « net/http/http_network_layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698