| 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 "googleurl/src/gurl.h" | |
| 12 #include "net/base/auth.h" | 11 #include "net/base/auth.h" |
| 13 #include "net/http/http_transaction_factory.h" | 12 #include "net/http/http_transaction_factory.h" |
| 14 #include "net/http/http_transaction_unittest.h" | 13 #include "net/http/http_transaction_unittest.h" |
| 15 #include "net/url_request/url_request_status.h" | 14 #include "net/url_request/url_request_status.h" |
| 16 #include "net/url_request/url_request_test_util.h" | 15 #include "net/url_request/url_request_test_util.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Inherit from URLRequestHttpJob to expose the priority and some | 23 // Inherit from URLRequestHttpJob to expose the priority and some |
| 24 // other hidden functions. | 24 // other hidden functions. |
| 25 class TestURLRequestHttpJob : public URLRequestHttpJob { | 25 class TestURLRequestHttpJob : public URLRequestHttpJob { |
| 26 public: | 26 public: |
| 27 explicit TestURLRequestHttpJob(URLRequest* request) | 27 explicit TestURLRequestHttpJob(URLRequest* request) |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Creates a second transaction. | 112 // Creates a second transaction. |
| 113 job->Start(); | 113 job->Start(); |
| 114 ASSERT_TRUE(network_layer_.last_transaction()); | 114 ASSERT_TRUE(network_layer_.last_transaction()); |
| 115 EXPECT_EQ(LOW, network_layer_.last_transaction()->priority()); | 115 EXPECT_EQ(LOW, network_layer_.last_transaction()->priority()); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace | 118 } // namespace |
| 119 | 119 |
| 120 } // namespace net | 120 } // namespace net |
| OLD | NEW |