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

Unified Diff: chrome/common/icon_messages_unittest.cc

Issue 6672065: Support touch icon in FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address the comments Created 9 years, 9 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
Index: chrome/common/icon_messages_unittest.cc
diff --git a/chrome/common/icon_messages_unittest.cc b/chrome/common/icon_messages_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..20ca21228bc8f4124934a7282e4111163bffdbf4
--- /dev/null
+++ b/chrome/common/icon_messages_unittest.cc
@@ -0,0 +1,15 @@
+// Copyright (c) 2011 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/history/history_types.h"
+#include "chrome/common/icon_messages.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+// Tests the IconType definition
+TEST(IconMessagesTest, IconTypeDefinition) {
+ EXPECT_EQ(static_cast<history::IconType>(FAVICON), history::FAVICON);
+ EXPECT_EQ(static_cast<history::IconType>(TOUCH_ICON), history::TOUCH_ICON);
+ EXPECT_EQ(static_cast<history::IconType>(TOUCH_PRECOMPOSED_ICON),
+ history::TOUCH_PRECOMPOSED_ICON);
+}

Powered by Google App Engine
This is Rietveld 408576698