OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
6 | 6 |
7 #include "chrome/renderer/plugins/plugin_uma.h" | 7 #include "chrome/renderer/plugins/plugin_uma.h" |
8 | 8 |
9 class PluginUMATest : public testing::Test { | 9 class PluginUMATest : public testing::Test { |
10 public: | 10 public: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 GURL("some url")); | 96 GURL("some url")); |
97 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, | 97 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, |
98 "application/x-futuresplash", | 98 "application/x-futuresplash", |
99 GURL("some url")); | 99 GURL("some url")); |
100 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, | 100 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, |
101 "application/shockwave-flash", | 101 "application/shockwave-flash", |
102 GURL("some url")); | 102 GURL("some url")); |
103 } | 103 } |
104 | 104 |
105 TEST_F(PluginUMATest, WidevineCdm) { | 105 TEST_F(PluginUMATest, WidevineCdm) { |
106 #if defined(ENABLE_PEPPER_CDMS) | 106 #if defined(ENABLE_WIDEVINE_CDM) && defined(ENABLE_PEPPER_CDMS) |
ddorwin
2014/12/15 18:31:06
ditto
sandersd (OOO until July 31)
2014/12/15 21:51:22
Done.
| |
107 ExpectPluginType(PluginUMAReporter::WIDEVINE_CDM, | 107 ExpectPluginType(PluginUMAReporter::WIDEVINE_CDM, |
108 #else | 108 #else |
109 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, | 109 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, |
110 #endif | 110 #endif |
111 "application/x-ppapi-widevine-cdm", | 111 "application/x-ppapi-widevine-cdm", |
112 GURL("some url")); | 112 GURL("some url")); |
113 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, | 113 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, |
114 "application/x-ppapi-widevine-cdm-sufix", | 114 "application/x-ppapi-widevine-cdm-sufix", |
115 GURL("some url")); | 115 GURL("some url")); |
116 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, | 116 ExpectPluginType(PluginUMAReporter::UNSUPPORTED_MIMETYPE, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 ExpectPluginType( | 153 ExpectPluginType( |
154 PluginUMAReporter::UNSUPPORTED_EXTENSION, std::string(), GURL("mov")); | 154 PluginUMAReporter::UNSUPPORTED_EXTENSION, std::string(), GURL("mov")); |
155 } | 155 } |
156 | 156 |
157 TEST_F(PluginUMATest, CaseSensitivity) { | 157 TEST_F(PluginUMATest, CaseSensitivity) { |
158 ExpectPluginType( | 158 ExpectPluginType( |
159 PluginUMAReporter::QUICKTIME, "video/QUICKTIME", GURL("http://file.aaa")); | 159 PluginUMAReporter::QUICKTIME, "video/QUICKTIME", GURL("http://file.aaa")); |
160 ExpectPluginType( | 160 ExpectPluginType( |
161 PluginUMAReporter::QUICKTIME, std::string(), GURL("http://file.MoV")); | 161 PluginUMAReporter::QUICKTIME, std::string(), GURL("http://file.MoV")); |
162 } | 162 } |
OLD | NEW |