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

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

Issue 146193005: Reland 251352 "cros: Enable multiprofile for everyone." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser_tests compile and remove unneeded header Created 6 years, 10 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/chromeos/login/multi_profile_user_controller.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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 {"charlie@invalid.domain", "hashcharlie", "Charlie"}, 825 {"charlie@invalid.domain", "hashcharlie", "Charlie"},
826 }; 826 };
827 827
828 // Test fixture class for testing multi-profile features. 828 // Test fixture class for testing multi-profile features.
829 class MultiProfileFileManagerBrowserTest : public FileManagerBrowserTestBase { 829 class MultiProfileFileManagerBrowserTest : public FileManagerBrowserTestBase {
830 protected: 830 protected:
831 // Enables multi-profiles. 831 // Enables multi-profiles.
832 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 832 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
833 FileManagerBrowserTestBase::SetUpCommandLine(command_line); 833 FileManagerBrowserTestBase::SetUpCommandLine(command_line);
834 command_line->AppendSwitch(switches::kMultiProfiles); 834 command_line->AppendSwitch(switches::kMultiProfiles);
835 command_line->AppendSwitch(chromeos::switches::kForceMultiProfileInTests);
836 // Logs in to a dummy profile (For making MultiProfileWindowManager happy; 835 // Logs in to a dummy profile (For making MultiProfileWindowManager happy;
837 // browser test creates a default window and the manager tries to assign a 836 // browser test creates a default window and the manager tries to assign a
838 // user for it, and we need a profile connected to a user.) 837 // user for it, and we need a profile connected to a user.)
839 command_line->AppendSwitchASCII(chromeos::switches::kLoginUser, 838 command_line->AppendSwitchASCII(chromeos::switches::kLoginUser,
840 kTestAccounts[DUMMY_ACCOUNT_INDEX].email); 839 kTestAccounts[DUMMY_ACCOUNT_INDEX].email);
841 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, 840 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile,
842 kTestAccounts[DUMMY_ACCOUNT_INDEX].hash); 841 kTestAccounts[DUMMY_ACCOUNT_INDEX].hash);
843 } 842 }
844 843
845 // Logs in to the primary profile of this test. 844 // Logs in to the primary profile of this test.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // (bob and charlie) are added in the test. Thus the existing test verifies 988 // (bob and charlie) are added in the test. Thus the existing test verifies
990 // that the feature is effectively working with lastly logged in users. 989 // that the feature is effectively working with lastly logged in users.
991 AddExtraUsersForStressTesting(); 990 AddExtraUsersForStressTesting();
992 991
993 set_test_case_name("multiProfileVisitDesktopMenu"); 992 set_test_case_name("multiProfileVisitDesktopMenu");
994 StartTest(); 993 StartTest();
995 } 994 }
996 995
997 } // namespace 996 } // namespace
998 } // namespace file_manager 997 } // namespace file_manager
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/multi_profile_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698