OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/base/keygen_handler.h" | 5 #include "net/base/keygen_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/task.h" | |
14 #include "base/threading/worker_pool.h" | 13 #include "base/threading/worker_pool.h" |
15 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
16 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
17 #include "build/build_config.h" | 16 #include "build/build_config.h" |
18 #include "crypto/nss_util.h" | 17 #include "crypto/nss_util.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 #if defined(USE_NSS) | 20 #if defined(USE_NSS) |
22 #include <private/pprthred.h> // PR_DetachThread | 21 #include <private/pprthred.h> // PR_DetachThread |
23 #endif | 22 #endif |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 events[i] = NULL; | 125 events[i] = NULL; |
127 | 126 |
128 VLOG(1) << "KeygenHandler " << i << " produced: " << results[i]; | 127 VLOG(1) << "KeygenHandler " << i << " produced: " << results[i]; |
129 AssertValidSignedPublicKeyAndChallenge(results[i], "some challenge"); | 128 AssertValidSignedPublicKeyAndChallenge(results[i], "some challenge"); |
130 } | 129 } |
131 } | 130 } |
132 | 131 |
133 } // namespace | 132 } // namespace |
134 | 133 |
135 } // namespace net | 134 } // namespace net |
OLD | NEW |