test_tcp_server_socket_private_disallowed.h 952 B

123456789101112131415161718192021222324252627282930
  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_SERVER_SOCKET_PRIVATE_DISALLOWED_H_
  5. #define PPAPI_TESTS_TEST_TCP_SERVER_SOCKET_PRIVATE_DISALLOWED_H_
  6. #include <string>
  7. #include "ppapi/c/pp_stdint.h"
  8. #include "ppapi/c/ppb_core.h"
  9. #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
  10. #include "ppapi/tests/test_case.h"
  11. class TestTCPServerSocketPrivateDisallowed : public TestCase {
  12. public:
  13. explicit TestTCPServerSocketPrivateDisallowed(TestingInstance* instance);
  14. // TestCase implementation.
  15. virtual bool Init();
  16. virtual void RunTests(const std::string& filter);
  17. private:
  18. std::string TestListen();
  19. const PPB_Core* core_interface_;
  20. const PPB_TCPServerSocket_Private* tcp_server_socket_private_interface_;
  21. };
  22. #endif // PPAPI_TESTS_TEST_TCP_SERVER_SOCKET_PRIVATE_DISALLOWED_H_