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

Side by Side Diff: content/common/gpu/media/jpeg_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: convert newly added scoped_ptr's 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This has to be included first. 5 // This has to be included first.
no sievers 2016/04/18 21:05:33 ^^ Can you either move the include back or just re
Mostyn Bramley-Moore 2016/04/18 21:47:01 Moved back (but it requires me to skip presubmit c
6 // See http://code.google.com/p/googletest/issues/detail?id=371 6 // See http://code.google.com/p/googletest/issues/detail?id=371
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 #include <stddef.h> 7 #include <stddef.h>
10 #include <stdint.h> 8 #include <stdint.h>
11 #include <string.h> 9 #include <string.h>
12 10
11 #include <memory>
12
13 #include "base/at_exit.h" 13 #include "base/at_exit.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/scoped_vector.h" 19 #include "base/memory/scoped_vector.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/strings/string_piece.h" 21 #include "base/strings/string_piece.h"
22 #include "base/strings/string_split.h" 22 #include "base/strings/string_split.h"
23 #include "base/thread_task_runner_handle.h" 23 #include "base/thread_task_runner_handle.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/common/gpu/media/video_accelerator_unittest_helpers.h" 25 #include "content/common/gpu/media/video_accelerator_unittest_helpers.h"
26 #include "media/base/test_data_util.h" 26 #include "media/base/test_data_util.h"
27 #include "media/filters/jpeg_parser.h" 27 #include "media/filters/jpeg_parser.h"
28 #include "media/video/jpeg_decode_accelerator.h" 28 #include "media/video/jpeg_decode_accelerator.h"
29 #include "testing/gtest/include/gtest/gtest.h"
29 #include "third_party/libyuv/include/libyuv.h" 30 #include "third_party/libyuv/include/libyuv.h"
30 #include "ui/gfx/codec/jpeg_codec.h" 31 #include "ui/gfx/codec/jpeg_codec.h"
31 32
32 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
33 #if defined(USE_V4L2_CODEC) 34 #if defined(USE_V4L2_CODEC)
34 #include "content/common/gpu/media/v4l2_device.h" 35 #include "content/common/gpu/media/v4l2_device.h"
35 #include "content/common/gpu/media/v4l2_jpeg_decode_accelerator.h" 36 #include "content/common/gpu/media/v4l2_jpeg_decode_accelerator.h"
36 #endif 37 #endif
37 #if defined(ARCH_CPU_X86_FAMILY) 38 #if defined(ARCH_CPU_X86_FAMILY)
38 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h" 39 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h"
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 #endif 580 #endif
580 581
581 content::g_env = 582 content::g_env =
582 reinterpret_cast<content::JpegDecodeAcceleratorTestEnvironment*>( 583 reinterpret_cast<content::JpegDecodeAcceleratorTestEnvironment*>(
583 testing::AddGlobalTestEnvironment( 584 testing::AddGlobalTestEnvironment(
584 new content::JpegDecodeAcceleratorTestEnvironment( 585 new content::JpegDecodeAcceleratorTestEnvironment(
585 jpeg_filenames))); 586 jpeg_filenames)));
586 587
587 return RUN_ALL_TESTS(); 588 return RUN_ALL_TESTS();
588 } 589 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698