OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The bulk of this file is support code; sorry about that. Here's an overview | 5 // The bulk of this file is support code; sorry about that. Here's an overview |
6 // to hopefully help readers of this code: | 6 // to hopefully help readers of this code: |
7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or | 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or |
8 // Win/EGL. | 8 // Win/EGL. |
9 // - ClientState is an enum for the state of the decode client used by the test. | 9 // - ClientState is an enum for the state of the decode client used by the test. |
10 // - ClientStateNotification is a barrier abstraction that allows the test code | 10 // - ClientStateNotification is a barrier abstraction that allows the test code |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Include gtest.h out of order because <X11/X.h> #define's Bool & None, which | 24 // Include gtest.h out of order because <X11/X.h> #define's Bool & None, which |
25 // gtest uses as struct names (inside a namespace). This means that | 25 // gtest uses as struct names (inside a namespace). This means that |
26 // #include'ing gtest after anything that pulls in X.h fails to compile. | 26 // #include'ing gtest after anything that pulls in X.h fails to compile. |
27 // This is http://code.google.com/p/googletest/issues/detail?id=371 | 27 // This is http://code.google.com/p/googletest/issues/detail?id=371 |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 #include "base/at_exit.h" | 30 #include "base/at_exit.h" |
31 #include "base/bind.h" | 31 #include "base/bind.h" |
32 #include "base/command_line.h" | 32 #include "base/command_line.h" |
33 #include "base/file_util.h" | |
34 #include "base/files/file.h" | 33 #include "base/files/file.h" |
| 34 #include "base/files/file_util.h" |
35 #include "base/format_macros.h" | 35 #include "base/format_macros.h" |
36 #include "base/md5.h" | 36 #include "base/md5.h" |
37 #include "base/message_loop/message_loop_proxy.h" | 37 #include "base/message_loop/message_loop_proxy.h" |
38 #include "base/process/process.h" | 38 #include "base/process/process.h" |
39 #include "base/stl_util.h" | 39 #include "base/stl_util.h" |
40 #include "base/strings/string_number_conversions.h" | 40 #include "base/strings/string_number_conversions.h" |
41 #include "base/strings/string_split.h" | 41 #include "base/strings/string_split.h" |
42 #include "base/strings/stringize_macros.h" | 42 #include "base/strings/stringize_macros.h" |
43 #include "base/strings/stringprintf.h" | 43 #include "base/strings/stringprintf.h" |
44 #include "base/strings/utf_string_conversions.h" | 44 #include "base/strings/utf_string_conversions.h" |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 if (it->first == "v" || it->first == "vmodule") | 1429 if (it->first == "v" || it->first == "vmodule") |
1430 continue; | 1430 continue; |
1431 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; | 1431 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; |
1432 } | 1432 } |
1433 | 1433 |
1434 base::ShadowingAtExitManager at_exit_manager; | 1434 base::ShadowingAtExitManager at_exit_manager; |
1435 content::RenderingHelper::InitializeOneOff(); | 1435 content::RenderingHelper::InitializeOneOff(); |
1436 | 1436 |
1437 return RUN_ALL_TESTS(); | 1437 return RUN_ALL_TESTS(); |
1438 } | 1438 } |
OLD | NEW |