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

Side by Side Diff: chrome/test/plugin/pdf_browsertest.cc

Issue 6976055: More POSIX support for Chromium, consisting mostly of broadening ifdefs. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « chrome/test/chrome_process_util.cc ('k') | chrome/test/reliability/page_load_test.cc » ('j') | 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) 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 ui_test_utils::GetTestFilePath(GetPDFTestDir(), FilePath()), 284 ui_test_utils::GetTestFilePath(GetPDFTestDir(), FilePath()),
285 false, 285 false,
286 file_util::FileEnumerator::FILES, 286 file_util::FileEnumerator::FILES,
287 FILE_PATH_LITERAL("*.pdf")); 287 FILE_PATH_LITERAL("*.pdf"));
288 for (FilePath file_path = file_enumerator.Next(); 288 for (FilePath file_path = file_enumerator.Next();
289 !file_path.empty(); 289 !file_path.empty();
290 file_path = file_enumerator.Next()) { 290 file_path = file_enumerator.Next()) {
291 std::string filename = file_path.BaseName().MaybeAsASCII(); 291 std::string filename = file_path.BaseName().MaybeAsASCII();
292 ASSERT_FALSE(filename.empty()); 292 ASSERT_FALSE(filename.empty());
293 293
294 #if defined(OS_MACOSX) || defined(OS_LINUX) 294 #if defined(OS_POSIX)
295 if (filename == "sample.pdf") 295 if (filename == "sample.pdf")
296 continue; // Crashes on Mac and Linux. http://crbug.com/63549 296 continue; // Crashes on Mac and Linux. http://crbug.com/63549
297 #endif 297 #endif
298 298
299 LOG(WARNING) << "PDFBrowserTest.Loading: " << filename; 299 LOG(WARNING) << "PDFBrowserTest.Loading: " << filename;
300 300
301 GURL url = pdf_test_server()->GetURL(base_url + filename); 301 GURL url = pdf_test_server()->GetURL(base_url + filename);
302 ui_test_utils::NavigateToURL(browser(), url); 302 ui_test_utils::NavigateToURL(browser(), url);
303 303
304 while (true) { 304 while (true) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( 339 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
340 browser()->GetSelectedTabContents()->render_view_host(), 340 browser()->GetSelectedTabContents()->render_view_host(),
341 std::wstring(), 341 std::wstring(),
342 L"reloadPDF();")); 342 L"reloadPDF();"));
343 343
344 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); 344 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
345 ASSERT_EQ("success", browser()->GetSelectedTabContents()->GetURL().query()); 345 ASSERT_EQ("success", browser()->GetSelectedTabContents()->GetURL().query());
346 } 346 }
347 347
348 } // namespace 348 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/chrome_process_util.cc ('k') | chrome/test/reliability/page_load_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698