OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "net/base/auth.h" | 12 #include "net/base/auth.h" |
13 #include "net/base/request_priority.h" | 13 #include "net/base/request_priority.h" |
14 #include "net/http/http_transaction_factory.h" | 14 #include "net/http/http_transaction_factory.h" |
15 #include "net/http/http_transaction_unittest.h" | 15 #include "net/http/http_transaction_test_util.h" |
16 #include "net/socket/socket_test_util.h" | 16 #include "net/socket/socket_test_util.h" |
17 #include "net/url_request/url_request_status.h" | 17 #include "net/url_request/url_request_status.h" |
18 #include "net/url_request/url_request_test_util.h" | 18 #include "net/url_request/url_request_test_util.h" |
19 #include "net/websockets/websocket_handshake_stream_base.h" | 19 #include "net/websockets/websocket_handshake_stream_base.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 req_.SetLoadFlags(LOAD_DISABLE_CACHE); | 288 req_.SetLoadFlags(LOAD_DISABLE_CACHE); |
289 job->Start(); | 289 job->Start(); |
290 base::RunLoop().RunUntilIdle(); | 290 base::RunLoop().RunUntilIdle(); |
291 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_.status().status()); | 291 EXPECT_EQ(URLRequestStatus::IO_PENDING, req_.status().status()); |
292 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); | 292 EXPECT_TRUE(fake_handshake_stream->initialize_stream_was_called()); |
293 } | 293 } |
294 | 294 |
295 } // namespace | 295 } // namespace |
296 | 296 |
297 } // namespace net | 297 } // namespace net |
OLD | NEW |