Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: net/base/keygen_handler_test_util.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanups, add test for chrome keygen class Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/keygen_handler_test_util.h
diff --git a/net/base/keygen_handler_test_util.h b/net/base/keygen_handler_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d000fbb53ec24cbb97b6e622fec81cbcc94da85
--- /dev/null
+++ b/net/base/keygen_handler_test_util.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_BASE_KEYGEN_HANLDER_TEST_UTIL_H_
+#define NET_BASE_KEYGEN_HANLDER_TEST_UTIL_H_
+
+#include <string>
+
+namespace net {
+
+// Assert that |result| is a valid output for KeygenHandler given challenge
+// string of |challenge|.
+void AssertValidSignedPublicKeyAndChallenge(const std::string& result,
+ int key_size_in_bits,
+ const std::string& challenge);
+
+} // namespace net
+
+#endif // NET_BASE_KEYGEN_HANLDER_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698