summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_tcp_socket_private_trusted.h
blob: 364229a9fc77ff48e24c431d19ee1471a5845cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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_