| 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/http/http_stream_factory_impl_request.h" | 5 #include "net/http/http_stream_factory_impl_request.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "net/http/http_stream_factory_impl.h" | 11 #include "net/http/http_stream_factory_impl.h" |
| 11 #include "net/http/http_stream_factory_impl_job.h" | 12 #include "net/http/http_stream_factory_impl_job.h" |
| 12 #include "net/http/http_stream_factory_impl_job_controller.h" | 13 #include "net/http/http_stream_factory_impl_job_controller.h" |
| 13 #include "net/http/http_stream_factory_test_util.h" | 14 #include "net/http/http_stream_factory_test_util.h" |
| 14 #include "net/proxy/proxy_info.h" | 15 #include "net/proxy/proxy_info.h" |
| 15 #include "net/proxy/proxy_service.h" | 16 #include "net/proxy/proxy_service.h" |
| 16 #include "net/spdy/spdy_test_util_common.h" | 17 #include "net/spdy/spdy_test_util_common.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 19 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 EXPECT_EQ(MEDIUM, job_controller->main_job()->priority()); | 49 EXPECT_EQ(MEDIUM, job_controller->main_job()->priority()); |
| 49 | 50 |
| 50 EXPECT_CALL(request_delegate, OnStreamFailed(_, _)).Times(1); | 51 EXPECT_CALL(request_delegate, OnStreamFailed(_, _)).Times(1); |
| 51 job_controller->OnStreamFailed(job_factory.main_job(), ERR_FAILED, | 52 job_controller->OnStreamFailed(job_factory.main_job(), ERR_FAILED, |
| 52 SSLConfig()); | 53 SSLConfig()); |
| 53 | 54 |
| 54 request->SetPriority(IDLE); | 55 request->SetPriority(IDLE); |
| 55 EXPECT_EQ(IDLE, job_controller->main_job()->priority()); | 56 EXPECT_EQ(IDLE, job_controller->main_job()->priority()); |
| 56 } | 57 } |
| 57 } // namespace net | 58 } // namespace net |
| OLD | NEW |