| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 // This has to be included first. | 7 // This has to be included first. |
| 8 // See http://code.google.com/p/googletest/issues/detail?id=371 | 8 // See http://code.google.com/p/googletest/issues/detail?id=371 |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "content/common/gpu/media/vaapi_h264_decoder.h" | 17 #include "content/common/gpu/media/h264_decoder.h" |
| 18 #include "media/base/video_decoder_config.h" | 18 #include "media/base/video_decoder_config.h" |
| 19 #include "third_party/libyuv/include/libyuv.h" | 19 #include "third_party/libyuv/include/libyuv.h" |
| 20 | 20 |
| 21 #if defined(USE_OZONE) | 21 #if defined(USE_OZONE) |
| 22 #include "ui/ozone/public/ozone_platform.h" | 22 #include "ui/ozone/public/ozone_platform.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 // This program is run like this: | 25 // This program is run like this: |
| 26 // DISPLAY=:0 ./vaapi_h264_decoder_unittest --input_file input.h264 | 26 // DISPLAY=:0 ./vaapi_h264_decoder_unittest --input_file input.h264 |
| 27 // [--output_file output.i420] [--md5sum expected_md5_hex] | 27 // [--output_file output.i420] [--md5sum expected_md5_hex] |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 } | 376 } |
| 377 | 377 |
| 378 #if defined(USE_OZONE) | 378 #if defined(USE_OZONE) |
| 379 base::MessageLoopForUI main_loop; | 379 base::MessageLoopForUI main_loop; |
| 380 ui::OzonePlatform::InitializeForUI(); | 380 ui::OzonePlatform::InitializeForUI(); |
| 381 ui::OzonePlatform::InitializeForGPU(); | 381 ui::OzonePlatform::InitializeForGPU(); |
| 382 #endif | 382 #endif |
| 383 | 383 |
| 384 return RUN_ALL_TESTS(); | 384 return RUN_ALL_TESTS(); |
| 385 } | 385 } |
| OLD | NEW |