OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Contains constants for known URLs and portions thereof. | |
6 | |
7 #ifndef CONTENT_COMMON_TEST_URL_CONSTANTS_H_ | 5 #ifndef CONTENT_COMMON_TEST_URL_CONSTANTS_H_ |
8 #define CONTENT_COMMON_TEST_URL_CONSTANTS_H_ | 6 #define CONTENT_COMMON_TEST_URL_CONSTANTS_H_ |
9 | 7 |
10 #include "content/public/common/url_constants.h" | 8 // Contains constants for known URLs and portions thereof. |
11 | 9 namespace content { |
12 namespace chrome { | |
13 | 10 |
14 // Various special URLs used for testing. They have the same values as the URLs | 11 // Various special URLs used for testing. They have the same values as the URLs |
15 // in chrome/common/url_constants.h, but are duplicated here so that the reverse | 12 // in chrome/common/url_constants.h, but are duplicated here so that the reverse |
16 // dependency can be broken. | 13 // dependency can be broken. |
17 | 14 |
18 // Various URLs used in security policy testing. | 15 // Various URLs used in security policy testing. |
19 extern const char kTestCacheURL[]; | 16 extern const char kTestCacheURL[]; |
20 | 17 |
21 // The NTP is assumed in several tests to have the property that it is WebUI. | 18 // The NTP is assumed in several tests to have the property that it is WebUI. |
22 extern const char kTestNewTabURL[]; | 19 extern const char kTestNewTabURL[]; |
23 | 20 |
24 // The History page is assumed in several tests to have the property that it is | 21 // The History page is assumed in several tests to have the property that it is |
25 // WebUI. That's the case only with the ChromeBrowserContentClient | 22 // WebUI. That's the case only with the ChromeBrowserContentClient |
26 // implementation of WebUIFactory. With a different implementation that might | 23 // implementation of WebUIFactory. With a different implementation that might |
27 // not be the case. | 24 // not be the case. |
28 extern const char kTestHistoryURL[]; | 25 extern const char kTestHistoryURL[]; |
29 | 26 |
30 // The Bookmarks page is assumed in several tests to have the property that it | 27 // The Bookmarks page is assumed in several tests to have the property that it |
31 // is an extension. That's the case only with the ChromeBrowserContentClient | 28 // is an extension. That's the case only with the ChromeBrowserContentClient |
32 // implementation of WebUIFactory. With a different implementation that might | 29 // implementation of WebUIFactory. With a different implementation that might |
33 // not be the case. | 30 // not be the case. |
34 extern const char kTestBookmarksURL[]; | 31 extern const char kTestBookmarksURL[]; |
35 | 32 |
36 } // namespace chrome | 33 } // namespace content |
37 | 34 |
38 #endif // CONTENT_COMMON_TEST_URL_CONSTANTS_H_ | 35 #endif // CONTENT_COMMON_TEST_URL_CONSTANTS_H_ |
OLD | NEW |