Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: content/common/test_url_constants.h

Issue 7049010: Finish removing url_constants from content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: constants Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/test_url_constants.h
diff --git a/content/common/test_url_constants.h b/content/common/test_url_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c81bb08a51e0ef53c805f4d4a57c5ef36e88d7a
--- /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_
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager_unittest.cc ('k') | content/common/test_url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698