[email protected] | b45c651 | 2011-03-02 21:04:28 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 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 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] | b45c651 | 2011-03-02 21:04:28 | [diff] [blame] | 11 | class TestURLUtil : public TestCase { |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 12 | public: |
[email protected] | b45c651 | 2011-03-02 21:04:28 | [diff] [blame] | 13 | TestURLUtil(TestingInstance* instance) : TestCase(instance), util_(NULL) {} |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 14 | |
15 | // TestCase implementation. | ||||
16 | virtual bool Init(); | ||||
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 17 | virtual void RunTests(const std::string& filter); |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 18 | |
19 | private: | ||||
20 | std::string TestCanonicalize(); | ||||
21 | std::string TestResolveRelative(); | ||||
22 | std::string TestIsSameSecurityOrigin(); | ||||
23 | std::string TestDocumentCanRequest(); | ||||
24 | std::string TestDocumentCanAccessDocument(); | ||||
[email protected] | b45c651 | 2011-03-02 21:04:28 | [diff] [blame] | 25 | std::string TestGetDocumentURL(); |
[email protected] | 087ce74 | 2011-03-31 21:46:45 | [diff] [blame] | 26 | std::string TestGetPluginInstanceURL(); |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 27 | |
[email protected] | b45c651 | 2011-03-02 21:04:28 | [diff] [blame] | 28 | const pp::URLUtil_Dev* util_; |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 29 | }; |
30 | |||||
31 | #endif // PPAPI_TESTS_TEST_URL_UTIL_H_ |