test_tcp_socket_private_trusted.h 957 B

1234567891011121314151617181920212223242526272829303132
  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.
  4. #ifndef PPAPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
  5. #define PPAPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
  6. #include <string>
  7. #include "ppapi/c/pp_stdint.h"
  8. #include "ppapi/tests/test_case.h"
  9. // This class is necessary to test the portions of TCP socket which are
  10. // not exposed to NaCl yet. In particular, functionality related to
  11. // X509 Certificates is tested here.
  12. class TestTCPSocketPrivateTrusted : public TestCase {
  13. public:
  14. explicit TestTCPSocketPrivateTrusted(TestingInstance* instance);
  15. // TestCase implementation.
  16. virtual bool Init();
  17. virtual void RunTests(const std::string& filter);
  18. private:
  19. std::string TestGetServerCertificate();
  20. std::string host_;
  21. uint16_t port_;
  22. uint16_t ssl_port_;
  23. };
  24. #endif // PPAPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_