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

Unified Diff: chrome/browser/intents/default_web_intent_service_unittest.cc

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/browser/intents/default_web_intent_service.cc ('k') | chrome/browser/intents/intent_service_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/intents/default_web_intent_service_unittest.cc
diff --git a/chrome/browser/intents/default_web_intent_service_unittest.cc b/chrome/browser/intents/default_web_intent_service_unittest.cc
deleted file mode 100644
index 9478e96a905f274545212ffcb6788fad8967f0d3..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/default_web_intent_service_unittest.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// 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 <string>
-
-#include "base/utf_string_conversions.h"
-#include "chrome/browser/intents/default_web_intent_service.h"
-#include "extensions/common/url_pattern.h"
-#include "googleurl/src/gurl.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-const char kEmptyString[] = "";
-const char kShareAction[] = "http://webintents.org/share";
-const char kPngType[] = "image/png";
-const char kMailToScheme[] = "mailto";
-const char kQuackService[] = "http://ducknet.com/quack";
-const URLPattern all_pattern(
- URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern);
-
-TEST(DefaultWebIntentServiceTest, Defaults) {
- DefaultWebIntentService service;
-
- EXPECT_EQ(string16(), service.action);
- EXPECT_EQ(string16(), service.type);
- EXPECT_EQ(string16(), service.scheme);
- EXPECT_EQ(all_pattern, service.url_pattern);
- EXPECT_EQ(-1, service.user_date);
- EXPECT_EQ(0, service.suppression);
- EXPECT_EQ("", service.service_url);
-}
-
-TEST(DefaultWebIntentServiceTest, ActionServicesEqual) {
- DefaultWebIntentService actual(
- ASCIIToUTF16(kShareAction),
- ASCIIToUTF16(kPngType),
- kQuackService);
-
- DefaultWebIntentService expected;
- expected.action = ASCIIToUTF16(kShareAction);
- expected.type = ASCIIToUTF16(kPngType);
- expected.service_url = kQuackService;
-
- EXPECT_EQ(expected, actual);
-}
-
-TEST(DefaultWebIntentServiceTest, SchemeServicesEqual) {
- DefaultWebIntentService actual(
- ASCIIToUTF16(kMailToScheme),
- kQuackService);
-
- DefaultWebIntentService expected;
- expected.scheme = ASCIIToUTF16(kMailToScheme);
- expected.service_url = kQuackService;
-
- EXPECT_EQ(expected, actual);
-}
-
-} // namespace
« no previous file with comments | « chrome/browser/intents/default_web_intent_service.cc ('k') | chrome/browser/intents/intent_service_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698