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

Side by Side Diff: content/common/gpu/client/gl_helper_unittest.cc

Issue 1208603002: content: implement unittests backend for Ozone GBM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Mac bots Created 4 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
« no previous file with comments | « no previous file | content/test/content_test_suite.h » ('j') | content/test/content_test_suite.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <cmath> 9 #include <cmath>
10 #include <string> 10 #include <string>
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 // Test in baseclass since it is friends with GLHelperScaling 1983 // Test in baseclass since it is friends with GLHelperScaling
1984 CheckOptimizationsTest(); 1984 CheckOptimizationsTest();
1985 } 1985 }
1986 1986
1987 } // namespace content 1987 } // namespace content
1988 1988
1989 namespace { 1989 namespace {
1990 1990
1991 int RunHelper(base::TestSuite* test_suite) { 1991 int RunHelper(base::TestSuite* test_suite) {
1992 content::UnitTestTestSuite runner(test_suite); 1992 content::UnitTestTestSuite runner(test_suite);
1993 base::MessageLoopForIO message_loop; 1993 // Ozone needs MessageLoopForUI. Otherwise, MessageLoopForIO is enough.
1994 base::MessageLoopForUI message_loop;
dshwang 2016/01/11 20:17:45 content_gl_tests creates a ContentTestSuite instan
1994 return runner.Run(); 1995 return runner.Run();
1995 } 1996 }
1996 1997
1997 } // namespace 1998 } // namespace
1998 1999
1999 // These tests needs to run against a proper GL environment, so we 2000 // These tests needs to run against a proper GL environment, so we
2000 // need to set it up before we can run the tests. 2001 // need to set it up before we can run the tests.
2001 int main(int argc, char** argv) { 2002 int main(int argc, char** argv) {
2002 base::CommandLine::Init(argc, argv); 2003 base::CommandLine::Init(argc, argv);
2003 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); 2004 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
2004 #if defined(OS_MACOSX) 2005 #if defined(OS_MACOSX)
2005 base::mac::ScopedNSAutoreleasePool pool; 2006 base::mac::ScopedNSAutoreleasePool pool;
2006 #endif 2007 #endif
2007 2008
2008 return base::LaunchUnitTestsSerially( 2009 return base::LaunchUnitTestsSerially(
2009 argc, 2010 argc,
2010 argv, 2011 argv,
2011 base::Bind(&RunHelper, base::Unretained(suite))); 2012 base::Bind(&RunHelper, base::Unretained(suite)));
2012 } 2013 }
OLDNEW
« no previous file with comments | « no previous file | content/test/content_test_suite.h » ('j') | content/test/content_test_suite.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698