| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 if (!base::GetFileInfo(*path, file_info)) | 359 if (!base::GetFileInfo(*path, file_info)) |
| 360 return false; | 360 return false; |
| 361 return true; | 361 return true; |
| 362 } | 362 } |
| 363 | 363 |
| 364 base::ScopedTempDir data_dir_; | 364 base::ScopedTempDir data_dir_; |
| 365 | 365 |
| 366 DISALLOW_COPY_AND_ASSIGN(PrinterProviderApiTest); | 366 DISALLOW_COPY_AND_ASSIGN(PrinterProviderApiTest); |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, PrintJobSuccess) { | 369 // TODO(crbug.com/631983): Flaky on Linux and CrOS trybots. |
| 370 #if defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 371 #define MAYBE_PrintJobSuccess DISABLED_PrintJobSuccess |
| 372 #else |
| 373 #define MAYBE_PrintJobSuccess PrintJobSuccess |
| 374 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) |
| 375 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, MAYBE_PrintJobSuccess) { |
| 370 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_BYTES, "OK"); | 376 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_BYTES, "OK"); |
| 371 } | 377 } |
| 372 | 378 |
| 373 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, PrintJobWithFileSuccess) { | 379 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, PrintJobWithFileSuccess) { |
| 374 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_FILE, "OK"); | 380 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_FILE, "OK"); |
| 375 } | 381 } |
| 376 | 382 |
| 377 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, | 383 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, |
| 378 PrintJobWithFile_FileDeletedBeforeDispatch) { | 384 PrintJobWithFile_FileDeletedBeforeDispatch) { |
| 379 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_FILE_DELETED, | 385 RunPrintRequestTestApp("OK", PRINT_REQUEST_DATA_TYPE_FILE_DELETED, |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 RunUsbPrinterInfoRequestTest("EMPTY_RESPONSE"); | 857 RunUsbPrinterInfoRequestTest("EMPTY_RESPONSE"); |
| 852 } | 858 } |
| 853 | 859 |
| 854 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, GetUsbPrinterInfoNoListener) { | 860 IN_PROC_BROWSER_TEST_F(PrinterProviderApiTest, GetUsbPrinterInfoNoListener) { |
| 855 RunUsbPrinterInfoRequestTest("NO_LISTENER"); | 861 RunUsbPrinterInfoRequestTest("NO_LISTENER"); |
| 856 } | 862 } |
| 857 | 863 |
| 858 } // namespace | 864 } // namespace |
| 859 | 865 |
| 860 } // namespace extensions | 866 } // namespace extensions |
| OLD | NEW |