OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_cache.h" | 5 #include "net/http/http_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "net/base/cache_type.h" | 13 #include "net/base/cache_type.h" |
Ryan Sleevi
2013/03/28 19:00:52
sort
Paweł Hajdan Jr.
2013/03/28 19:40:06
Done.
| |
14 #include "net/base/cert_status_flags.h" | 14 #include "net/cert/cert_status_flags.h" |
15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
16 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/net_log_unittest.h" | 18 #include "net/base/net_log_unittest.h" |
19 #include "net/base/upload_bytes_element_reader.h" | 19 #include "net/base/upload_bytes_element_reader.h" |
20 #include "net/base/upload_data_stream.h" | 20 #include "net/base/upload_data_stream.h" |
21 #include "net/disk_cache/disk_cache.h" | 21 #include "net/disk_cache/disk_cache.h" |
22 #include "net/http/http_byte_range.h" | 22 #include "net/http/http_byte_range.h" |
23 #include "net/http/http_request_headers.h" | 23 #include "net/http/http_request_headers.h" |
24 #include "net/http/http_request_info.h" | 24 #include "net/http/http_request_info.h" |
(...skipping 5726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5751 trans->SetPriority(net::HIGHEST); | 5751 trans->SetPriority(net::HIGHEST); |
5752 // Should trigger a new network transaction and pick up the new | 5752 // Should trigger a new network transaction and pick up the new |
5753 // priority. | 5753 // priority. |
5754 ReadAndVerifyTransaction(trans.get(), transaction); | 5754 ReadAndVerifyTransaction(trans.get(), transaction); |
5755 | 5755 |
5756 EXPECT_EQ(net::HIGHEST, | 5756 EXPECT_EQ(net::HIGHEST, |
5757 cache.network_layer()->last_create_transaction_priority()); | 5757 cache.network_layer()->last_create_transaction_priority()); |
5758 | 5758 |
5759 RemoveMockTransaction(&kRangeGET_TransactionOK); | 5759 RemoveMockTransaction(&kRangeGET_TransactionOK); |
5760 } | 5760 } |
OLD | NEW |