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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/extension_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/extensions/extension_constants.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(ExtensionConstantsTest, IntentSearchQuery) {
10 const char expected_url[] = "https://chrome.google.com/webstore/"
11 "category/collection/webintent_apps"
12 "?_wi=http%3A%2F%2Fwebintents.org%2Fedit&_mt=image%2Fjpeg";
13
14 GURL result = extension_urls::GetWebstoreIntentQueryURL(
15 "http://webintents.org/edit", "image/jpeg");
16 EXPECT_EQ(expected_url, result.spec());
17 }
OLDNEW
« 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