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/default_channel_id_store.h" | 5 #include "net/ssl/default_channel_id_store.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "crypto/ec_private_key.h" | 21 #include "crypto/ec_private_key.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/test/channel_id_test_util.h" | 23 #include "net/test/channel_id_test_util.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 void CallCounter(int* counter) { | 30 void CallCounter(int* counter) { |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 ++channel_id; | 513 ++channel_id; |
514 EXPECT_EQ("copied.com", channel_id->server_identifier()); | 514 EXPECT_EQ("copied.com", channel_id->server_identifier()); |
515 EXPECT_TRUE(KeysEqual(copied_key.get(), channel_id->key())); | 515 EXPECT_TRUE(KeysEqual(copied_key.get(), channel_id->key())); |
516 | 516 |
517 ++channel_id; | 517 ++channel_id; |
518 EXPECT_EQ("preexisting.com", channel_id->server_identifier()); | 518 EXPECT_EQ("preexisting.com", channel_id->server_identifier()); |
519 EXPECT_TRUE(KeysEqual(preexisting_key.get(), channel_id->key())); | 519 EXPECT_TRUE(KeysEqual(preexisting_key.get(), channel_id->key())); |
520 } | 520 } |
521 | 521 |
522 } // namespace net | 522 } // namespace net |
OLD | NEW |