OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <limits> | 11 #include <limits> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/basictypes.h" | |
16 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
17 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
19 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
20 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
23 #include "base/run_loop.h" | 23 #include "base/run_loop.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/test/test_file_util.h" | 26 #include "base/test/test_file_util.h" |
27 #include "base/thread_task_runner_handle.h" | 27 #include "base/thread_task_runner_handle.h" |
28 #include "net/base/auth.h" | 28 #include "net/base/auth.h" |
29 #include "net/base/chunked_upload_data_stream.h" | 29 #include "net/base/chunked_upload_data_stream.h" |
30 #include "net/base/completion_callback.h" | 30 #include "net/base/completion_callback.h" |
(...skipping 15754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15785 | 15785 |
15786 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); | 15786 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); |
15787 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); | 15787 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); |
15788 | 15788 |
15789 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, | 15789 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, |
15790 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); | 15790 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); |
15791 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); | 15791 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); |
15792 } | 15792 } |
15793 | 15793 |
15794 } // namespace net | 15794 } // namespace net |
OLD | NEW |