| OLD | NEW |
| 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. |
| 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" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "base/at_exit.h" | 15 #include "base/at_exit.h" |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" | 20 #include "base/macros.h" |
| 21 #include "base/memory/scoped_vector.h" | 21 #include "base/memory/scoped_vector.h" |
| 22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
| 23 #include "base/strings/string_piece.h" | 23 #include "base/strings/string_piece.h" |
| 24 #include "base/strings/string_split.h" | 24 #include "base/strings/string_split.h" |
| 25 #include "base/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
| 26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
| 27 #include "media/base/test_data_util.h" | 27 #include "media/base/test_data_util.h" |
| 28 #include "media/filters/jpeg_parser.h" | 28 #include "media/filters/jpeg_parser.h" |
| 29 #include "media/gpu/video_accelerator_unittest_helpers.h" | 29 #include "media/gpu/video_accelerator_unittest_helpers.h" |
| 30 #include "media/video/jpeg_decode_accelerator.h" | 30 #include "media/video/jpeg_decode_accelerator.h" |
| 31 #include "third_party/libyuv/include/libyuv.h" | 31 #include "third_party/libyuv/include/libyuv.h" |
| 32 #include "ui/gfx/codec/jpeg_codec.h" | 32 #include "ui/gfx/codec/jpeg_codec.h" |
| 33 | 33 |
| 34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 35 #if defined(USE_V4L2_CODEC) | 35 #if defined(USE_V4L2_CODEC) |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) | 564 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| 565 media::VaapiWrapper::PreSandboxInitialization(); | 565 media::VaapiWrapper::PreSandboxInitialization(); |
| 566 #endif | 566 #endif |
| 567 | 567 |
| 568 media::g_env = reinterpret_cast<media::JpegDecodeAcceleratorTestEnvironment*>( | 568 media::g_env = reinterpret_cast<media::JpegDecodeAcceleratorTestEnvironment*>( |
| 569 testing::AddGlobalTestEnvironment( | 569 testing::AddGlobalTestEnvironment( |
| 570 new media::JpegDecodeAcceleratorTestEnvironment(jpeg_filenames))); | 570 new media::JpegDecodeAcceleratorTestEnvironment(jpeg_filenames))); |
| 571 | 571 |
| 572 return RUN_ALL_TESTS(); | 572 return RUN_ALL_TESTS(); |
| 573 } | 573 } |
| OLD | NEW |