| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // The base test class. | 340 // The base test class. |
| 341 class FileManagerBrowserTest : | 341 class FileManagerBrowserTest : |
| 342 public ExtensionApiTest, | 342 public ExtensionApiTest, |
| 343 public ::testing::WithParamInterface<TestParameter> { | 343 public ::testing::WithParamInterface<TestParameter> { |
| 344 protected: | 344 protected: |
| 345 FileManagerBrowserTest() : | 345 FileManagerBrowserTest() : |
| 346 local_volume_(new LocalTestVolume), | 346 local_volume_(new LocalTestVolume), |
| 347 drive_volume_(std::tr1::get<0>(GetParam()) != IN_GUEST_MODE ? | 347 drive_volume_(std::tr1::get<0>(GetParam()) != IN_GUEST_MODE ? |
| 348 new DriveTestVolume() : NULL) {} | 348 new DriveTestVolume() : NULL) {} |
| 349 | 349 |
| 350 virtual void SetUp() OVERRIDE { | |
| 351 // TODO(danakj): The GPU Video Decoder needs real GL bindings. | |
| 352 // crbug.com/269087 | |
| 353 UseRealGLBindings(); | |
| 354 | |
| 355 ExtensionApiTest::SetUp(); | |
| 356 } | |
| 357 | |
| 358 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 350 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; |
| 359 | 351 |
| 360 virtual void SetUpOnMainThread() OVERRIDE; | 352 virtual void SetUpOnMainThread() OVERRIDE; |
| 361 | 353 |
| 362 // Adds an incognito and guest-mode flags for tests in the guest mode. | 354 // Adds an incognito and guest-mode flags for tests in the guest mode. |
| 363 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 355 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 364 | 356 |
| 365 // Loads our testing extension and sends it a string identifying the current | 357 // Loads our testing extension and sends it a string identifying the current |
| 366 // test. | 358 // test. |
| 367 void StartTest(); | 359 void StartTest(); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); | 523 TestParameter(NOT_IN_GUEST_MODE, "restoreCurrentView"))); |
| 532 | 524 |
| 533 INSTANTIATE_TEST_CASE_P( | 525 INSTANTIATE_TEST_CASE_P( |
| 534 ShareDialog, | 526 ShareDialog, |
| 535 FileManagerBrowserTest, | 527 FileManagerBrowserTest, |
| 536 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), | 528 ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "shareFile"), |
| 537 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); | 529 TestParameter(NOT_IN_GUEST_MODE, "shareDirectory"))); |
| 538 | 530 |
| 539 } // namespace | 531 } // namespace |
| 540 } // namespace file_manager | 532 } // namespace file_manager |
| OLD | NEW |