OLD | NEW |
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 <stdio.h> | 5 #include <stdio.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 // need to set it up before we can run the tests. | 1564 // need to set it up before we can run the tests. |
1565 int main(int argc, char** argv) { | 1565 int main(int argc, char** argv) { |
1566 CommandLine::Init(argc, argv); | 1566 CommandLine::Init(argc, argv); |
1567 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); | 1567 base::TestSuite* suite = new content::ContentTestSuite(argc, argv); |
1568 #if defined(OS_MACOSX) | 1568 #if defined(OS_MACOSX) |
1569 base::mac::ScopedNSAutoreleasePool pool; | 1569 base::mac::ScopedNSAutoreleasePool pool; |
1570 #endif | 1570 #endif |
1571 #if defined(TOOLKIT_GTK) | 1571 #if defined(TOOLKIT_GTK) |
1572 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); | 1572 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
1573 #endif | 1573 #endif |
1574 gfx::GLSurface::InitializeOneOff(); | |
1575 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); | 1574 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); |
1576 | 1575 |
1577 content::UnitTestTestSuite runner(suite); | 1576 content::UnitTestTestSuite runner(suite); |
1578 base::MessageLoop message_loop; | 1577 base::MessageLoop message_loop; |
1579 return runner.Run(); | 1578 return runner.Run(); |
1580 } | 1579 } |
OLD | NEW |