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/message_loop.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "net/base/cache_type.h" | 13 #include "net/base/cache_type.h" |
14 #include "net/base/host_port_pair.h" | 14 #include "net/base/host_port_pair.h" |
15 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
16 #include "net/base/load_timing_info.h" | 16 #include "net/base/load_timing_info.h" |
17 #include "net/base/load_timing_info_test_util.h" | 17 #include "net/base/load_timing_info_test_util.h" |
18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
19 #include "net/base/net_log_unittest.h" | 19 #include "net/base/net_log_unittest.h" |
20 #include "net/base/upload_bytes_element_reader.h" | 20 #include "net/base/upload_bytes_element_reader.h" |
(...skipping 5973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5994 trans->SetPriority(net::HIGHEST); | 5994 trans->SetPriority(net::HIGHEST); |
5995 // Should trigger a new network transaction and pick up the new | 5995 // Should trigger a new network transaction and pick up the new |
5996 // priority. | 5996 // priority. |
5997 ReadAndVerifyTransaction(trans.get(), transaction); | 5997 ReadAndVerifyTransaction(trans.get(), transaction); |
5998 | 5998 |
5999 EXPECT_EQ(net::HIGHEST, | 5999 EXPECT_EQ(net::HIGHEST, |
6000 cache.network_layer()->last_create_transaction_priority()); | 6000 cache.network_layer()->last_create_transaction_priority()); |
6001 | 6001 |
6002 RemoveMockTransaction(&kRangeGET_TransactionOK); | 6002 RemoveMockTransaction(&kRangeGET_TransactionOK); |
6003 } | 6003 } |
OLD | NEW |