OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 "Native Client", | 254 "Native Client", |
255 "Chrome Remote Desktop Viewer", | 255 "Chrome Remote Desktop Viewer", |
256 #if defined(OS_CHROMEOS) | 256 #if defined(OS_CHROMEOS) |
257 "Google Talk Plugin", | 257 "Google Talk Plugin", |
258 "Google Talk Plugin Video Accelerator", | 258 "Google Talk Plugin Video Accelerator", |
259 "Netflix", | 259 "Netflix", |
260 #endif | 260 #endif |
261 }; | 261 }; |
262 | 262 |
263 std::vector<content::WebPluginInfo> plugins = GetPlugins(); | 263 std::vector<content::WebPluginInfo> plugins = GetPlugins(); |
264 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(expected); ++i) { | 264 for (size_t i = 0; i < arraysize(expected); ++i) { |
265 size_t j = 0; | 265 size_t j = 0; |
266 for (; j < plugins.size(); ++j) { | 266 for (; j < plugins.size(); ++j) { |
267 if (plugins[j].name == base::ASCIIToUTF16(expected[i])) | 267 if (plugins[j].name == base::ASCIIToUTF16(expected[i])) |
268 break; | 268 break; |
269 } | 269 } |
270 ASSERT_TRUE(j != plugins.size()) << "Didn't find " << expected[i]; | 270 ASSERT_TRUE(j != plugins.size()) << "Didn't find " << expected[i]; |
271 } | 271 } |
272 } | 272 } |
273 #endif | 273 #endif |
OLD | NEW |