Home | History | Annotate | Download | only in tests
      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 
      5 #ifndef PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
      6 #define PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
      7 
      8 #include <string>
      9 
     10 #include "ppapi/c/pp_stdint.h"
     11 #include "ppapi/tests/test_case.h"
     12 
     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);
     19 
     20   // TestCase implementation.
     21   virtual bool Init();
     22   virtual void RunTests(const std::string& filter);
     23 
     24  private:
     25   std::string TestGetServerCertificate();
     26 
     27   std::string host_;
     28   uint16_t port_;
     29   uint16_t ssl_port_;
     30 };
     31 
     32 #endif  // PAPPI_TESTS_TEST_TCP_SOCKET_PRIVATE_TRUSTED_H_
     33