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

Unified Diff: chrome/browser/intents/web_intents_reporting_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/web_intents_reporting.cc ('k') | chrome/browser/intents/web_intents_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/intents/web_intents_reporting_unittest.cc
diff --git a/chrome/browser/intents/web_intents_reporting_unittest.cc b/chrome/browser/intents/web_intents_reporting_unittest.cc
deleted file mode 100644
index 0bcb1367d0e3c9d6dbb195bfa7b8795ae2b0bb3f..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/web_intents_reporting_unittest.cc
+++ /dev/null
@@ -1,48 +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 "chrome/browser/intents/web_intents_reporting.h"
-
-#include <vector>
-
-#include "base/metrics/histogram.h"
-#include "base/metrics/statistics_recorder.h"
-#include "base/utf_string_conversions.h"
-#include "chrome/browser/intents/web_intents_util.h"
-#include "chrome/browser/search_engines/search_engine_type.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace web_intents {
-namespace reporting {
-namespace {
-
-const char kCustomAction[] = "jiggle";
-const char kImageType[] = "image/png";
-const char kCustomType[] = "http://a.b/mine";
-
-UMABucket ToBucket(const std::string& action, const std::string& type) {
- return web_intents::ToUMABucket(
- ASCIIToUTF16(action), ASCIIToUTF16(type));
-}
-
-} // namespace
-
-TEST(WebIntentsReportingTest, RecognizedActionAndType) {
- EXPECT_EQ(BUCKET_SHARE_IMAGE, ToBucket(kActionShare, kImageType));
-}
-
-TEST(WebIntentsReportingTest, CustomAction) {
- EXPECT_EQ(BUCKET_CUSTOM_IMAGE, ToBucket(kCustomAction, kImageType));
-}
-
-TEST(WebIntentsReportingTest, CustomType) {
- EXPECT_EQ(BUCKET_EDIT_CUSTOM, ToBucket(kActionEdit, kCustomType));
-}
-
-TEST(WebIntentsReportingTest, CustomActionAndType) {
- EXPECT_EQ(BUCKET_CUSTOM_CUSTOM, ToBucket(kCustomAction, kCustomType));
-}
-
-} // namespace reporting
-} // namespace web_intents
« no previous file with comments | « chrome/browser/intents/web_intents_reporting.cc ('k') | chrome/browser/intents/web_intents_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698