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

Side by Side Diff: content/public/test/browser_test_base.cc

Issue 436603002: Enable Screen Orientation integration tests for Chrome OS and Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reduce_flakiness
Patch Set: fix android Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/public/test/browser_test_base.h" 5 #include "content/public/test/browser_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/i18n/icu_util.h" 10 #include "base/i18n/icu_util.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 renderer_loop->PostTask( 289 renderer_loop->PostTask(
290 FROM_HERE, 290 FROM_HERE,
291 base::Bind(&RunTaskOnRendererThread, task, runner->QuitClosure())); 291 base::Bind(&RunTaskOnRendererThread, task, runner->QuitClosure()));
292 runner->Run(); 292 runner->Run();
293 } 293 }
294 294
295 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; } 295 void BrowserTestBase::EnablePixelOutput() { enable_pixel_output_ = true; }
296 296
297 void BrowserTestBase::UseSoftwareCompositing() { 297 void BrowserTestBase::UseSoftwareCompositing() {
298 #if !defined(USE_AURA) && !defined(OS_MACOSX)
299 // TODO(danakj): Remove when GTK linux is no more.
300 NOTREACHED();
301 #endif
302 use_software_compositing_ = true; 298 use_software_compositing_ = true;
303 } 299 }
304 300
305 bool BrowserTestBase::UsingOSMesa() const { 301 bool BrowserTestBase::UsingOSMesa() const {
306 CommandLine* cmd = CommandLine::ForCurrentProcess(); 302 CommandLine* cmd = CommandLine::ForCurrentProcess();
307 return cmd->GetSwitchValueASCII(switches::kUseGL) == 303 return cmd->GetSwitchValueASCII(switches::kUseGL) ==
308 gfx::kGLImplementationOSMesaName; 304 gfx::kGLImplementationOSMesaName;
309 } 305 }
310 306
311 } // namespace content 307 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_browsertest.cc ('k') | content/public/test/test_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698