| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Browser test for basic Chrome OS file manager functionality: | 5 // Browser test for basic Chrome OS file manager functionality: |
| 6 // - The file list is updated when a file is added externally to the Downloads | 6 // - The file list is updated when a file is added externally to the Downloads |
| 7 // folder. | 7 // folder. |
| 8 // - Selecting a file and copy-pasting it with the keyboard copies the file. | 8 // - Selecting a file and copy-pasting it with the keyboard copies the file. |
| 9 // - Selecting a file and pressing delete deletes it. | 9 // - Selecting a file and pressing delete deletes it. |
| 10 | 10 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // The base test class. | 481 // The base test class. |
| 482 class FileManagerBrowserTest : | 482 class FileManagerBrowserTest : |
| 483 public ExtensionApiTest, | 483 public ExtensionApiTest, |
| 484 public ::testing::WithParamInterface<TestParameter> { | 484 public ::testing::WithParamInterface<TestParameter> { |
| 485 protected: | 485 protected: |
| 486 FileManagerBrowserTest() : | 486 FileManagerBrowserTest() : |
| 487 local_volume_(new LocalTestVolume), | 487 local_volume_(new LocalTestVolume), |
| 488 drive_volume_(std::tr1::get<0>(GetParam()) != IN_GUEST_MODE ? | 488 drive_volume_(std::tr1::get<0>(GetParam()) != IN_GUEST_MODE ? |
| 489 new DriveTestVolume() : NULL) {} | 489 new DriveTestVolume() : NULL) {} |
| 490 | 490 |
| 491 virtual void SetUp() OVERRIDE { | |
| 492 // TODO(danakj): The GPU Video Decoder needs real GL bindings. | |
| 493 // crbug.com/269087 | |
| 494 UseRealGLBindings(); | |
| 495 | |
| 496 ExtensionApiTest::SetUp(); | |
| 497 } | |
| 498 | |
| 499 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 491 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; |
| 500 | 492 |
| 501 virtual void SetUpOnMainThread() OVERRIDE; | 493 virtual void SetUpOnMainThread() OVERRIDE; |
| 502 | 494 |
| 503 // Adds an incognito and guest-mode flags for tests in the guest mode. | 495 // Adds an incognito and guest-mode flags for tests in the guest mode. |
| 504 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 496 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 505 | 497 |
| 506 // Loads our testing extension and sends it a string identifying the current | 498 // Loads our testing extension and sends it a string identifying the current |
| 507 // test. | 499 // test. |
| 508 void StartTest(); | 500 void StartTest(); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); | 742 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "searchBoxFocus"))); |
| 751 | 743 |
| 752 INSTANTIATE_TEST_CASE_P( | 744 INSTANTIATE_TEST_CASE_P( |
| 753 Thumbnails, | 745 Thumbnails, |
| 754 FileManagerBrowserTest, | 746 FileManagerBrowserTest, |
| 755 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), | 747 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "thumbnailsDownloads"), |
| 756 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); | 748 TestParameter(IN_GUEST_MODE, "thumbnailsDownloads"))); |
| 757 | 749 |
| 758 } // namespace | 750 } // namespace |
| 759 } // namespace file_manager | 751 } // namespace file_manager |
| OLD | NEW |