| 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());
|
| +}
|
|
|