OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ssl/channel_id_service.h" | 5 #include "net/ssl/channel_id_service.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.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/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/task_runner.h" | 18 #include "base/task_runner.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "crypto/ec_private_key.h" | 20 #include "crypto/ec_private_key.h" |
21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
22 #include "net/base/test_completion_callback.h" | 22 #include "net/base/test_completion_callback.h" |
23 #include "net/cert/asn1_util.h" | 23 #include "net/cert/asn1_util.h" |
24 #include "net/cert/x509_certificate.h" | 24 #include "net/cert/x509_certificate.h" |
25 #include "net/ssl/default_channel_id_store.h" | 25 #include "net/ssl/default_channel_id_store.h" |
26 #include "net/test/channel_id_test_util.h" | 26 #include "net/test/channel_id_test_util.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 namespace net { | 29 namespace net { |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 EXPECT_EQ(1u, service_->inflight_joins()); | 623 EXPECT_EQ(1u, service_->inflight_joins()); |
624 EXPECT_TRUE(key1); | 624 EXPECT_TRUE(key1); |
625 EXPECT_TRUE(KeysEqual(key1.get(), key2.get())); | 625 EXPECT_TRUE(KeysEqual(key1.get(), key2.get())); |
626 EXPECT_FALSE(request1.is_active()); | 626 EXPECT_FALSE(request1.is_active()); |
627 EXPECT_FALSE(request2.is_active()); | 627 EXPECT_FALSE(request2.is_active()); |
628 } | 628 } |
629 | 629 |
630 } // namespace | 630 } // namespace |
631 | 631 |
632 } // namespace net | 632 } // namespace net |
OLD | NEW |