OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <list> | 7 #include <list> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "components/cronet/ios/cronet_c_for_grpc.h" | 18 #include "components/cronet/ios/cronet_c_for_grpc.h" |
19 #include "components/cronet/ios/cronet_environment.h" | 19 #include "components/cronet/ios/cronet_environment.h" |
20 #include "components/cronet/ios/test/quic_test_server.h" | 20 #include "components/cronet/ios/test/quic_test_server.h" |
21 #include "net/base/mac/url_conversions.h" | 21 #include "net/base/mac/url_conversions.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/test_data_directory.h" | |
24 #include "net/cert/mock_cert_verifier.h" | 23 #include "net/cert/mock_cert_verifier.h" |
| 24 #include "net/test/test_data_directory.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "testing/gtest_mac.h" | 26 #include "testing/gtest_mac.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 cronet_bidirectional_stream_header kTestHeaders[] = { | 31 cronet_bidirectional_stream_header kTestHeaders[] = { |
32 {"header1", "foo"}, | 32 {"header1", "foo"}, |
33 {"header2", "bar"}, | 33 {"header2", "bar"}, |
34 }; | 34 }; |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 ASSERT_EQ(TestBidirectionalStreamCallback::ON_FAILED, test.response_step); | 601 ASSERT_EQ(TestBidirectionalStreamCallback::ON_FAILED, test.response_step); |
602 ASSERT_EQ(net::ERR_NAME_NOT_RESOLVED, test.net_error); | 602 ASSERT_EQ(net::ERR_NAME_NOT_RESOLVED, test.net_error); |
603 cronet_bidirectional_stream_destroy(test.stream); | 603 cronet_bidirectional_stream_destroy(test.stream); |
604 } | 604 } |
605 | 605 |
606 INSTANTIATE_TEST_CASE_P(CronetBidirectionalStreamDelayRequestHeadersUntilFlush, | 606 INSTANTIATE_TEST_CASE_P(CronetBidirectionalStreamDelayRequestHeadersUntilFlush, |
607 CronetBidirectionalStreamTest, | 607 CronetBidirectionalStreamTest, |
608 ::testing::Values(true, false)); | 608 ::testing::Values(true, false)); |
609 | 609 |
610 } // namespace cronet | 610 } // namespace cronet |
OLD | NEW |