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

Unified Diff: trunk/src/chrome/test/ppapi/ppapi_test.cc

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/chrome/test/gpu/webgl_infobar_browsertest.cc ('k') | trunk/src/chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/ppapi/ppapi_test.cc
===================================================================
--- trunk/src/chrome/test/ppapi/ppapi_test.cc (revision 216906)
+++ trunk/src/chrome/test/ppapi/ppapi_test.cc (working copy)
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/test/base/test_launcher_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/dom_operation_notification_details.h"
#include "content/public/browser/notification_service.h"
@@ -115,6 +116,15 @@
}
void PPAPITestBase::SetUpCommandLine(CommandLine* command_line) {
+ // Do not use mesa if real GPU is required.
+ if (!command_line->HasSwitch(switches::kUseGpuInTests)) {
+#if !defined(OS_MACOSX)
+ CHECK(test_launcher_utils::OverrideGLImplementation(
+ command_line, gfx::kGLImplementationOSMesaName)) <<
+ "kUseGL must not be set by test framework code!";
+#endif
+ }
+
// The test sends us the result via a cookie.
command_line->AppendSwitch(switches::kEnableFileCookies);
« no previous file with comments | « trunk/src/chrome/test/gpu/webgl_infobar_browsertest.cc ('k') | trunk/src/chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698