| Index: components/plugins/renderer/plugin_uma_unittest.cc
|
| diff --git a/chrome/renderer/plugins/plugin_uma_unittest.cc b/components/plugins/renderer/plugin_uma_unittest.cc
|
| similarity index 88%
|
| rename from chrome/renderer/plugins/plugin_uma_unittest.cc
|
| rename to components/plugins/renderer/plugin_uma_unittest.cc
|
| index 587ab662b3f97bd3186998b3ee9668dee2149e28..bf46f13227d70b233258c0066654125594692ea9 100644
|
| --- a/chrome/renderer/plugins/plugin_uma_unittest.cc
|
| +++ b/components/plugins/renderer/plugin_uma_unittest.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include <gtest/gtest.h>
|
|
|
| -#include "chrome/renderer/plugins/plugin_uma.h"
|
| +#include "components/plugins/renderer/plugin_uma.h"
|
|
|
| class PluginUMATest : public testing::Test {
|
| public:
|
| @@ -13,8 +13,8 @@ class PluginUMATest : public testing::Test {
|
| const std::string& plugin_mime_type,
|
| const GURL& plugin_src) {
|
| EXPECT_EQ(expected_plugin_type,
|
| - PluginUMAReporter::GetInstance()->GetPluginType(plugin_mime_type,
|
| - plugin_src));
|
| + PluginUMAReporter::GetInstance()
|
| + ->GetPluginType(plugin_mime_type, plugin_src));
|
| }
|
| };
|
|
|
| @@ -43,9 +43,8 @@ TEST_F(PluginUMATest, Silverlight) {
|
| }
|
|
|
| TEST_F(PluginUMATest, RealPlayer) {
|
| - ExpectPluginType(PluginUMAReporter::REALPLAYER,
|
| - "audio/x-pn-realaudio",
|
| - GURL("some url"));
|
| + ExpectPluginType(
|
| + PluginUMAReporter::REALPLAYER, "audio/x-pn-realaudio", GURL("some url"));
|
| ExpectPluginType(PluginUMAReporter::REALPLAYER,
|
| "audio/x-pn-realaudio-some-sufix",
|
| GURL("some url"));
|
| @@ -55,9 +54,8 @@ TEST_F(PluginUMATest, RealPlayer) {
|
| }
|
|
|
| TEST_F(PluginUMATest, Java) {
|
| - ExpectPluginType(PluginUMAReporter::JAVA,
|
| - "application/x-java-applet",
|
| - GURL("some url"));
|
| + ExpectPluginType(
|
| + PluginUMAReporter::JAVA, "application/x-java-applet", GURL("some url"));
|
| ExpectPluginType(PluginUMAReporter::JAVA,
|
| "application/x-java-applet-some-sufix",
|
| GURL("some url"));
|
| @@ -67,9 +65,8 @@ TEST_F(PluginUMATest, Java) {
|
| }
|
|
|
| TEST_F(PluginUMATest, QuickTime) {
|
| - ExpectPluginType(PluginUMAReporter::QUICKTIME,
|
| - "video/quicktime",
|
| - GURL("some url"));
|
| + ExpectPluginType(
|
| + PluginUMAReporter::QUICKTIME, "video/quicktime", GURL("some url"));
|
| ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE,
|
| "video/quicktime-sufix",
|
| GURL("some url"));
|
| @@ -158,9 +155,8 @@ TEST_F(PluginUMATest, BySrcExtension) {
|
| }
|
|
|
| TEST_F(PluginUMATest, CaseSensitivity) {
|
| - ExpectPluginType(PluginUMAReporter::QUICKTIME,
|
| - "video/QUICKTIME",
|
| - GURL("http://file.aaa"));
|
| + ExpectPluginType(
|
| + PluginUMAReporter::QUICKTIME, "video/QUICKTIME", GURL("http://file.aaa"));
|
| ExpectPluginType(
|
| PluginUMAReporter::QUICKTIME, std::string(), GURL("http://file.MoV"));
|
| }
|
|
|