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

Unified Diff: webkit/glue/web_intent_reply_data_unittest.cc

Issue 12340107: Remove some more web intents code I missed previously (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: cros 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 | « webkit/glue/web_intent_reply_data.cc ('k') | webkit/glue/web_intent_service_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/web_intent_reply_data_unittest.cc
diff --git a/webkit/glue/web_intent_reply_data_unittest.cc b/webkit/glue/web_intent_reply_data_unittest.cc
deleted file mode 100644
index bf7004cde6c6df4d2baac9aa376a5908ecc979cc..0000000000000000000000000000000000000000
--- a/webkit/glue/web_intent_reply_data_unittest.cc
+++ /dev/null
@@ -1,59 +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 "googleurl/src/gurl.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/glue/web_intent_reply_data.h"
-
-using webkit_glue::WebIntentReply;
-
-namespace {
-
-TEST(WebIntentReplyDataTest, DefaultValues) {
- WebIntentReply reply;
- EXPECT_EQ(webkit_glue::WEB_INTENT_REPLY_INVALID, reply.type);
- EXPECT_EQ(string16(), reply.data);
- EXPECT_EQ(base::FilePath(), reply.data_file);
- EXPECT_EQ(-1, reply.data_file_size);
-}
-
-TEST(WebIntentReplyDataTest, Equality) {
- WebIntentReply data_a(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- ASCIIToUTF16("poodles"));
-
- WebIntentReply data_b(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- ASCIIToUTF16("poodles"));
-
- WebIntentReply data_c(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- ASCIIToUTF16("hamfancy"));
-
- EXPECT_EQ(data_a, data_b);
- EXPECT_FALSE(data_a == data_c || data_b == data_c);
-
- WebIntentReply file_a(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- base::FilePath(),
- 22);
-
- WebIntentReply file_b(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- base::FilePath(),
- 22);
-
- WebIntentReply file_c(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS,
- base::FilePath(),
- 17);
-
- EXPECT_EQ(file_a, file_b);
- EXPECT_FALSE(file_a == file_c || file_b == file_c);
-}
-
-} // namespace
« no previous file with comments | « webkit/glue/web_intent_reply_data.cc ('k') | webkit/glue/web_intent_service_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698