blob: b70127127751b58253b19e1d36a1443cfc9e5f0c [file] [log] [blame]
[email protected]b45c6512011-03-02 21:04:281// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]1758e882010-11-01 16:16:502// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PPAPI_TESTS_TEST_URL_UTIL_H_
6#define PPAPI_TESTS_TEST_URL_UTIL_H_
7
8#include "ppapi/cpp/dev/url_util_dev.h"
9#include "ppapi/tests/test_case.h"
10
[email protected]b45c6512011-03-02 21:04:2811class TestURLUtil : public TestCase {
[email protected]1758e882010-11-01 16:16:5012 public:
[email protected]b45c6512011-03-02 21:04:2813 TestURLUtil(TestingInstance* instance) : TestCase(instance), util_(NULL) {}
[email protected]1758e882010-11-01 16:16:5014
15 // TestCase implementation.
16 virtual bool Init();
[email protected]2622d6b2011-11-16 04:28:0217 virtual void RunTests(const std::string& filter);
[email protected]1758e882010-11-01 16:16:5018
19 private:
20 std::string TestCanonicalize();
21 std::string TestResolveRelative();
22 std::string TestIsSameSecurityOrigin();
23 std::string TestDocumentCanRequest();
24 std::string TestDocumentCanAccessDocument();
[email protected]b45c6512011-03-02 21:04:2825 std::string TestGetDocumentURL();
[email protected]087ce742011-03-31 21:46:4526 std::string TestGetPluginInstanceURL();
[email protected]1758e882010-11-01 16:16:5027
[email protected]b45c6512011-03-02 21:04:2828 const pp::URLUtil_Dev* util_;
[email protected]1758e882010-11-01 16:16:5029};
30
31#endif // PPAPI_TESTS_TEST_URL_UTIL_H_