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

Side by Side Diff: chrome/browser/chromeos/file_manager/file_manager_browsertest.cc

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stubgl: use_osmesa Created 6 years, 11 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 | « no previous file | chrome/browser/extensions/api/tab_capture/tab_capture_apitest.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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698