| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/files/file_enumerator.h" | 8 #include "base/files/file_enumerator.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/hash.h" | 10 #include "base/hash.h" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 ASSERT_EQ(1u, downloads.size()); | 307 ASSERT_EQ(1u, downloads.size()); |
| 308 downloads[0]->Cancel(false); | 308 downloads[0]->Cancel(false); |
| 309 } | 309 } |
| 310 | 310 |
| 311 // We break PDFTest.Load up into kNumberLoadTestParts. | 311 // We break PDFTest.Load up into kNumberLoadTestParts. |
| 312 INSTANTIATE_TEST_CASE_P(PDFTestFiles, | 312 INSTANTIATE_TEST_CASE_P(PDFTestFiles, |
| 313 PDFExtensionTest, | 313 PDFExtensionTest, |
| 314 testing::Range(0, kNumberLoadTestParts)); | 314 testing::Range(0, kNumberLoadTestParts)); |
| 315 | 315 |
| 316 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Basic) { | 316 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Basic) { |
| 317 RunTestsInFile("basic_test_material.js", "test.pdf"); | 317 RunTestsInFile("basic_test.js", "test.pdf"); |
| 318 } | 318 } |
| 319 | 319 |
| 320 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, BasicPlugin) { | 320 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, BasicPlugin) { |
| 321 RunTestsInFile("basic_plugin_test.js", "test.pdf"); | 321 RunTestsInFile("basic_plugin_test.js", "test.pdf"); |
| 322 } | 322 } |
| 323 | 323 |
| 324 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { | 324 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { |
| 325 RunTestsInFile("viewport_test.js", "test.pdf"); | 325 RunTestsInFile("viewport_test.js", "test.pdf"); |
| 326 } | 326 } |
| 327 | 327 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 #endif | 501 #endif |
| 502 ASSERT_TRUE( | 502 ASSERT_TRUE( |
| 503 content::ExecuteScript(guest_contents, "viewer.viewport.zoomIn();")); | 503 content::ExecuteScript(guest_contents, "viewer.viewport.zoomIn();")); |
| 504 | 504 |
| 505 watcher.Wait(); | 505 watcher.Wait(); |
| 506 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | 506 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
| 507 EXPECT_EQ(nullptr, ZoomBubbleView::GetZoomBubble()); | 507 EXPECT_EQ(nullptr, ZoomBubbleView::GetZoomBubble()); |
| 508 #endif | 508 #endif |
| 509 } | 509 } |
| 510 | 510 |
| OLD | NEW |