summaryrefslogtreecommitdiffstats
path: root/content/common/test_url_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/test_url_constants.h')
-rw-r--r--content/common/test_url_constants.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/content/common/test_url_constants.h b/content/common/test_url_constants.h
new file mode 100644
index 0000000..4c81bb0
--- /dev/null
+++ b/content/common/test_url_constants.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Contains constants for known URLs and portions thereof.
+
+#ifndef CONTENT_COMMON_TEST_URL_CONSTANTS_H_
+#define CONTENT_COMMON_TEST_URL_CONSTANTS_H_
+#pragma once
+
+#include "content/common/url_constants.h"
+
+namespace chrome {
+
+// Various special URLs used for testing. They have the same values as the URLs
+// in chrome/common/url_constants.h, but are duplicated here so that the reverse
+// dependency can be broken.
+
+// Various URLs used in security policy testing.
+extern const char kTestCacheURL[];
+extern const char kTestHangURL[];
+
+// The About pages are assumed in several tests to not be a WebUI page.
+extern const char kTestMemoryURL[];
+
+// The NTP is assumed in several tests to have the property that it is WebUI.
+extern const char kTestNewTabURL[];
+
+// The History page is assumed in several tests to have the property that it is
+// WebUI. That's the case only with the ChromeBrowserContentClient
+// implementation of WebUIFactory. With a different implementation that might
+// not be the case.
+extern const char kTestHistoryURL[];
+
+// The Bookmarks page is assumed in several tests to have the property that it
+// is an extension. That's the case only with the ChromeBrowserContentClient
+// implementation of WebUIFactory. With a different implementation that might
+// not be the case.
+extern const char kTestBookmarksURL[];
+
+} // namespace chrome
+
+#endif // CONTENT_COMMON_TEST_URL_CONSTANTS_H_