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

Side by Side Diff: chrome/test/ui/ui_test.cc

Issue 4761001: Moved --use-gl=osmesa switch out of test_launcher_utils (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/test/test_launcher_utils.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/test/ui/ui_test.h" 5 #include "chrome/test/ui/ui_test.h"
6 6
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 #include <signal.h> 8 #include <signal.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #endif 10 #endif
11 11
12 #include <set> 12 #include <set>
13 #include <vector> 13 #include <vector>
14 14
15 #include "app/app_switches.h"
16 #include "app/gfx/gl/gl_implementation.h"
15 #include "app/sql/connection.h" 17 #include "app/sql/connection.h"
16 #include "base/base_switches.h" 18 #include "base/base_switches.h"
17 #include "base/command_line.h" 19 #include "base/command_line.h"
18 #include "base/environment.h" 20 #include "base/environment.h"
19 #include "base/file_path.h" 21 #include "base/file_path.h"
20 #include "base/file_util.h" 22 #include "base/file_util.h"
21 #include "base/path_service.h" 23 #include "base/path_service.h"
22 #include "base/platform_thread.h" 24 #include "base/platform_thread.h"
23 #include "base/process_util.h" 25 #include "base/process_util.h"
24 #include "base/scoped_ptr.h" 26 #include "base/scoped_ptr.h"
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // No default browser check, it would create an info-bar (if we are not the 683 // No default browser check, it would create an info-bar (if we are not the
682 // default browser) that could conflicts with some tests expectations. 684 // default browser) that could conflicts with some tests expectations.
683 command_line.AppendSwitch(switches::kNoDefaultBrowserCheck); 685 command_line.AppendSwitch(switches::kNoDefaultBrowserCheck);
684 686
685 // This is a UI test. 687 // This is a UI test.
686 command_line.AppendSwitchASCII(switches::kTestType, kUITestType); 688 command_line.AppendSwitchASCII(switches::kTestType, kUITestType);
687 689
688 // Tell the browser to use a temporary directory just for this test. 690 // Tell the browser to use a temporary directory just for this test.
689 command_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir()); 691 command_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir());
690 692
693 // Force tests to use OSMesa if they launch the GPU process.
694 command_line.AppendSwitchASCII(switches::kUseGL,
695 gfx::kGLImplementationOSMesaName);
696
697 // Mac does not support accelerated compositing with OSMesa. Disable on all
698 // platforms so it is consistent. http://crbug.com/58343
699 command_line.AppendSwitch(switches::kDisableAcceleratedCompositing);
700
691 // We need cookies on file:// for things like the page cycler. 701 // We need cookies on file:// for things like the page cycler.
692 if (enable_file_cookies_) 702 if (enable_file_cookies_)
693 command_line.AppendSwitch(switches::kEnableFileCookies); 703 command_line.AppendSwitch(switches::kEnableFileCookies);
694 704
695 if (dom_automation_enabled_) 705 if (dom_automation_enabled_)
696 command_line.AppendSwitch(switches::kDomAutomationController); 706 command_line.AppendSwitch(switches::kDomAutomationController);
697 707
698 if (include_testing_id_) { 708 if (include_testing_id_) {
699 command_line.AppendSwitchASCII(switches::kTestingChannelID, 709 command_line.AppendSwitchASCII(switches::kTestingChannelID,
700 server_->channel_id()); 710 server_->channel_id());
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 } 1179 }
1170 1180
1171 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF() 1181 LOG(INFO) << "Elapsed time: " << (base::Time::Now() - start).InSecondsF()
1172 << " seconds" 1182 << " seconds"
1173 << " call failed " << fail_count << " times" 1183 << " call failed " << fail_count << " times"
1174 << " state was incorrect " << incorrect_state_count << " times"; 1184 << " state was incorrect " << incorrect_state_count << " times";
1175 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__; 1185 ADD_FAILURE() << "Timeout reached in " << __FUNCTION__;
1176 return false; 1186 return false;
1177 } 1187 }
1178 1188
OLDNEW
« no previous file with comments | « chrome/test/test_launcher_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698