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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 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) 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
11 // to be written sequentially and wait for the decode client to see certain 11 // to be written sequentially and wait for the decode client to see certain
12 // state transitions. 12 // state transitions.
13 // - GLRenderingVDAClient is a VideoDecodeAccelerator::Client implementation 13 // - GLRenderingVDAClient is a VideoDecodeAccelerator::Client implementation
14 // - Finally actual TEST cases are at the bottom of this file, using the above 14 // - Finally actual TEST cases are at the bottom of this file, using the above
15 // infrastructure. 15 // infrastructure.
16 16
17 #include <fcntl.h> 17 #include <fcntl.h>
18 #include <stddef.h> 18 #include <stddef.h>
19 #include <stdint.h> 19 #include <stdint.h>
20 #include <sys/stat.h> 20 #include <sys/stat.h>
21 #include <sys/types.h> 21 #include <sys/types.h>
22
22 #include <algorithm> 23 #include <algorithm>
23 #include <deque> 24 #include <deque>
24 #include <map> 25 #include <map>
26 #include <memory>
25 #include <utility> 27 #include <utility>
26 28
27 #include "base/at_exit.h" 29 #include "base/at_exit.h"
28 #include "base/bind.h" 30 #include "base/bind.h"
29 #include "base/callback_helpers.h" 31 #include "base/callback_helpers.h"
30 #include "base/command_line.h" 32 #include "base/command_line.h"
31 #include "base/files/file.h" 33 #include "base/files/file.h"
32 #include "base/files/file_util.h" 34 #include "base/files/file_util.h"
33 #include "base/format_macros.h" 35 #include "base/format_macros.h"
34 #include "base/macros.h" 36 #include "base/macros.h"
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 content::VaapiWrapper::PreSandboxInitialization(); 1581 content::VaapiWrapper::PreSandboxInitialization();
1580 #endif 1582 #endif
1581 1583
1582 content::g_env = 1584 content::g_env =
1583 reinterpret_cast<content::VideoDecodeAcceleratorTestEnvironment*>( 1585 reinterpret_cast<content::VideoDecodeAcceleratorTestEnvironment*>(
1584 testing::AddGlobalTestEnvironment( 1586 testing::AddGlobalTestEnvironment(
1585 new content::VideoDecodeAcceleratorTestEnvironment())); 1587 new content::VideoDecodeAcceleratorTestEnvironment()));
1586 1588
1587 return RUN_ALL_TESTS(); 1589 return RUN_ALL_TESTS();
1588 } 1590 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698