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

Unified Diff: ppapi/tests/test_tcp_socket_private_trusted.h

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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: ppapi/tests/test_tcp_socket_private_trusted.h
diff --git a/ppapi/tests/test_tcp_socket_private_trusted.h b/ppapi/tests/test_tcp_socket_private_trusted.h
new file mode 100644
index 0000000000000000000000000000000000000000..364229a9fc77ff48e24c431d19ee1471a5845cf8
--- /dev/null
+++ b/ppapi/tests/test_tcp_socket_private_trusted.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 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 PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
+#define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
+
+#include <string>
+
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/tests/test_case.h"
+
+// This class is necessary to test the portions of TCP socket which are
+// not exposed to NaCl yet. In particular, functionality related to
+// X509 Certificates is tested here.
+class TestTCPSocketPrivateTrusted : public TestCase {
+ public:
+ explicit TestTCPSocketPrivateTrusted(TestingInstance* instance);
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ std::string TestGetServerCertificate();
+
+ std::string host_;
+ uint16_t port_;
+ uint16_t ssl_port_;
+};
+
+#endif // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
« no previous file with comments | « ppapi/shared_impl/private/tcp_socket_private_impl.cc ('k') | ppapi/tests/test_tcp_socket_private_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698