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

Side by Side Diff: chrome/browser/chrome_plugin_browsertest.cc

Issue 11026043: Disable more of ChromePluginBrowserTest.Flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable all except Linux Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_util.h" 10 #include "base/file_util.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 iter.GetData().type == content::PROCESS_TYPE_PPAPI_PLUGIN) { 181 iter.GetData().type == content::PROCESS_TYPE_PPAPI_PLUGIN) {
182 (*count)++; 182 (*count)++;
183 } 183 }
184 } 184 }
185 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, quit_task); 185 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, quit_task);
186 } 186 }
187 }; 187 };
188 188
189 // Tests a bunch of basic scenarios with Flash. 189 // Tests a bunch of basic scenarios with Flash.
190 // This test fails under ASan on Mac, see http://crbug.com/147004. 190 // This test fails under ASan on Mac, see http://crbug.com/147004.
191 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) 191 // It fails elsewhere, too. See http://crbug.com/152071.
192 #if defined(ADDRESS_SANITIZER) || defined(OS_MACOSX) || defined(OS_WIN)
192 #define MAYBE_Flash DISABLED_Flash 193 #define MAYBE_Flash DISABLED_Flash
193 #else 194 #else
194 #define MAYBE_Flash Flash 195 #define MAYBE_Flash Flash
195 #endif 196 #endif
196 IN_PROC_BROWSER_TEST_F(ChromePluginTest, MAYBE_Flash) { 197 IN_PROC_BROWSER_TEST_F(ChromePluginTest, MAYBE_Flash) {
197 // Official builds always have bundled Flash. 198 // Official builds always have bundled Flash.
198 #if !defined(OFFICIAL_BUILD) 199 #if !defined(OFFICIAL_BUILD)
199 std::vector<FilePath> flash_paths; 200 std::vector<FilePath> flash_paths;
200 GetFlashPath(&flash_paths); 201 GetFlashPath(&flash_paths);
201 if (flash_paths.empty()) { 202 if (flash_paths.empty()) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 std::vector<webkit::WebPluginInfo> plugins = GetPlugins(); 258 std::vector<webkit::WebPluginInfo> plugins = GetPlugins();
258 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(expected); ++i) { 259 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(expected); ++i) {
259 size_t j = 0; 260 size_t j = 0;
260 for (; j < plugins.size(); ++j) { 261 for (; j < plugins.size(); ++j) {
261 if (plugins[j].name == ASCIIToUTF16(expected[i])) 262 if (plugins[j].name == ASCIIToUTF16(expected[i]))
262 break; 263 break;
263 } 264 }
264 ASSERT_TRUE(j != plugins.size()) << "Didn't find " << expected[i]; 265 ASSERT_TRUE(j != plugins.size()) << "Didn't find " << expected[i];
265 } 266 }
266 } 267 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698