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

Side by Side Diff: content/common/gpu/media/omx_video_decode_accelerator_unittest.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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 | Annotate | Revision Log
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 // 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, and GLES2. 7 // - RenderingHelper is charged with interacting with X11, EGL, and GLES2.
8 // - ClientState is an enum for the state of the decode client used by the test. 8 // - ClientState is an enum for the state of the decode client used by the test.
9 // - ClientStateNotification is a barrier abstraction that allows the test code 9 // - ClientStateNotification is a barrier abstraction that allows the test code
10 // to be written sequentially and wait for the decode client to see certain 10 // to be written sequentially and wait for the decode client to see certain
11 // state transitions. 11 // state transitions.
12 // - EglRenderingVDAClient is a VideoDecodeAccelerator::Client implementation 12 // - EglRenderingVDAClient is a VideoDecodeAccelerator::Client implementation
13 // - Finally actual TEST cases are at the bottom of this file, using the above 13 // - Finally actual TEST cases are at the bottom of this file, using the above
14 // infrastructure. 14 // infrastructure.
15 15
16 #include <fcntl.h> 16 #include <fcntl.h>
17 #include <math.h> 17 #include <math.h>
18 #include <sys/stat.h> 18 #include <sys/stat.h>
19 #include <sys/types.h> 19 #include <sys/types.h>
20 20
21 // Include gtest.h out of order because <X11/X.h> #define's Bool & None, which 21 // Include gtest.h out of order because <X11/X.h> #define's Bool & None, which
22 // gtest uses as struct names (inside a namespace). This means that 22 // gtest uses as struct names (inside a namespace). This means that
23 // #include'ing gtest after anything that pulls in X.h fails to compile. 23 // #include'ing gtest after anything that pulls in X.h fails to compile.
24 // This is http://code.google.com/p/googletest/issues/detail?id=371 24 // This is http://code.google.com/p/googletest/issues/detail?id=371
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 #include "base/at_exit.h" 27 #include "base/at_exit.h"
28 #include "base/command_line.h" 28 #include "base/command_line.h"
29 #include "base/file_util.h" 29 #include "base/file_util.h"
30 #include "base/stl_util-inl.h" 30 #include "base/stl_util.h"
31 #include "base/string_number_conversions.h" 31 #include "base/string_number_conversions.h"
32 #include "base/string_split.h" 32 #include "base/string_split.h"
33 #include "base/stringize_macros.h" 33 #include "base/stringize_macros.h"
34 #include "base/synchronization/condition_variable.h" 34 #include "base/synchronization/condition_variable.h"
35 #include "base/synchronization/lock.h" 35 #include "base/synchronization/lock.h"
36 #include "base/synchronization/waitable_event.h" 36 #include "base/synchronization/waitable_event.h"
37 #include "base/threading/thread.h" 37 #include "base/threading/thread.h"
38 #include "content/common/gpu/media/omx_video_decode_accelerator.h" 38 #include "content/common/gpu/media/omx_video_decode_accelerator.h"
39 #include "third_party/angle/include/EGL/egl.h" 39 #include "third_party/angle/include/EGL/egl.h"
40 #include "third_party/angle/include/GLES2/gl2.h" 40 #include "third_party/angle/include/GLES2/gl2.h"
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 it != switches.end(); ++it) { 923 it != switches.end(); ++it) {
924 if (it->first == "test_video_data") { 924 if (it->first == "test_video_data") {
925 test_video_data = it->second.c_str(); 925 test_video_data = it->second.c_str();
926 continue; 926 continue;
927 } 927 }
928 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second; 928 LOG(FATAL) << "Unexpected switch: " << it->first << ":" << it->second;
929 } 929 }
930 930
931 return RUN_ALL_TESTS(); 931 return RUN_ALL_TESTS();
932 } 932 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698