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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter_unittest.cc

Issue 1069703002: Replace the struct workaround for forward-declaring ChromeViewHostMsg_GetPluginInfo_Status with a p… (Closed) Base URL: https://chromium.googlesource.com/chromium/src@issue444203
Patch Set: update base branch Created 5 years, 8 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/plugins/plugin_info_message_filter.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_info_message_filter_unittest.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter_unittest.cc b/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
index a1cf28a0aa6266fba765ccec55612acd50f96987..6d85e9755345f370b3331ecb39cb3e99d728978c 100644
--- a/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
@@ -168,7 +168,7 @@ TEST_F(PluginInfoMessageFilterTest, FindEnabledPlugin) {
EXPECT_TRUE(context()->FindEnabledPlugin(
0, GURL(), GURL(), "foo/bar", &status, &plugin, &actual_mime_type,
NULL));
- EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kAllowed, status.value);
+ EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kAllowed, status);
EXPECT_EQ(foo_plugin_path_.value(), plugin.path.value());
}
@@ -180,7 +180,7 @@ TEST_F(PluginInfoMessageFilterTest, FindEnabledPlugin) {
EXPECT_TRUE(context()->FindEnabledPlugin(
0, GURL(), GURL(), "foo/bar", &status, &plugin, &actual_mime_type,
NULL));
- EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kAllowed, status.value);
+ EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kAllowed, status);
EXPECT_EQ(bar_plugin_path_.value(), plugin.path.value());
}
@@ -194,7 +194,7 @@ TEST_F(PluginInfoMessageFilterTest, FindEnabledPlugin) {
EXPECT_FALSE(context()->FindEnabledPlugin(
0, GURL(), GURL(), "foo/bar", &status, &plugin, &actual_mime_type,
NULL));
- EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kDisabled, status.value);
+ EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kDisabled, status);
EXPECT_EQ(foo_plugin_path_.value(), plugin.path.value());
}
{
@@ -204,7 +204,7 @@ TEST_F(PluginInfoMessageFilterTest, FindEnabledPlugin) {
EXPECT_FALSE(context()->FindEnabledPlugin(
0, GURL(), GURL(), "baz/blurp", &status, &plugin, &actual_mime_type,
NULL));
- EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kNotFound, status.value);
+ EXPECT_EQ(ChromeViewHostMsg_GetPluginInfo_Status::kNotFound, status);
EXPECT_EQ(FILE_PATH_LITERAL(""), plugin.path.value());
}
}
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698