Elim cr-checkbox
[chromium-blink-merge.git] / ppapi / tests / test_tcp_socket_private_trusted.h
blob364229a9fc77ff48e24c431d19ee1471a5845cf8
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
6 #define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
8 #include <string>
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/tests/test_case.h"
13 // This class is necessary to test the portions of TCP socket which are
14 // not exposed to NaCl yet. In particular, functionality related to
15 // X509 Certificates is tested here.
16 class TestTCPSocketPrivateTrusted : public TestCase {
17 public:
18 explicit TestTCPSocketPrivateTrusted(TestingInstance* instance);
20 // TestCase implementation.
21 virtual bool Init();
22 virtual void RunTests(const std::string& filter);
24 private:
25 std::string TestGetServerCertificate();
27 std::string host_;
28 uint16_t port_;
29 uint16_t ssl_port_;
32 #endif // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_