test_host_resolver_private_disallowed.h 818 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_HOST_RESOLVER_PRIVATE_DISALLOWED_H_
  5. #define PPAPI_TESTS_TEST_HOST_RESOLVER_PRIVATE_DISALLOWED_H_
  6. #include <stdint.h>
  7. #include <string>
  8. #include "ppapi/cpp/private/host_resolver_private.h"
  9. #include "ppapi/tests/test_case.h"
  10. class TestHostResolverPrivateDisallowed : public TestCase {
  11. public:
  12. explicit TestHostResolverPrivateDisallowed(TestingInstance* instance);
  13. // TestCase implementation.
  14. virtual bool Init();
  15. virtual void RunTests(const std::string& filter);
  16. private:
  17. std::string TestResolve();
  18. std::string host_;
  19. uint16_t port_;
  20. };
  21. #endif // PPAPI_TESTS_TEST_HOST_RESOLVER_PRIVATE_DISALLOWED_H_