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

Unified Diff: chrome/common/extensions/extension_constants_unittest.cc

Issue 10310071: [RFC] Support CWS intents query URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to HEAD Created 8 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
« no previous file with comments | « chrome/common/extensions/extension_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants_unittest.cc
diff --git a/chrome/common/extensions/extension_constants_unittest.cc b/chrome/common/extensions/extension_constants_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1be5c08101fc80e0475e2f86883ce9e51bf2ee97
--- /dev/null
+++ b/chrome/common/extensions/extension_constants_unittest.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2012 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.
+
+#include "chrome/common/extensions/extension_constants.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+TEST(ExtensionConstantsTest, IntentSearchQuery) {
+ const char expected_url[] = "https://chrome.google.com/webstore/"
+ "category/collection/webintent_apps"
+ "?_wi=http%3A%2F%2Fwebintents.org%2Fedit&_mt=image%2Fjpeg";
+
+ GURL result = extension_urls::GetWebstoreIntentQueryURL(
+ "http://webintents.org/edit", "image/jpeg");
+ EXPECT_EQ(expected_url, result.spec());
+}
« no previous file with comments | « chrome/common/extensions/extension_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698