| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chromecast/base/metrics/cast_metrics_test_helper.h" | 9 #include "chromecast/base/metrics/cast_metrics_test_helper.h" |
| 10 #include "media/base/media.h" | 10 #include "media/base/media.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void CmaTestSuite::Initialize() { | 26 void CmaTestSuite::Initialize() { |
| 27 // Run TestSuite::Initialize first so that logging is initialized. | 27 // Run TestSuite::Initialize first so that logging is initialized. |
| 28 base::TestSuite::Initialize(); | 28 base::TestSuite::Initialize(); |
| 29 | 29 |
| 30 // Some of the chromecast media unit tests require a metrics helper instance. | 30 // Some of the chromecast media unit tests require a metrics helper instance. |
| 31 // Provide a fake one. | 31 // Provide a fake one. |
| 32 chromecast::metrics::InitializeMetricsHelperForTesting(); | 32 chromecast::metrics::InitializeMetricsHelperForTesting(); |
| 33 | 33 |
| 34 // Initialize the FFMpeg library. | 34 // Initialize the FFMpeg library. |
| 35 // Note: at this time, AtExitManager is already present. | 35 // Note: at this time, AtExitManager is already present. |
| 36 media::InitializeMediaLibraryForTesting(); | 36 media::InitializeMediaLibrary(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 int main(int argc, char** argv) { | 39 int main(int argc, char** argv) { |
| 40 CmaTestSuite test_suite(argc, argv); | 40 CmaTestSuite test_suite(argc, argv); |
| 41 | 41 |
| 42 return base::LaunchUnitTests( | 42 return base::LaunchUnitTests( |
| 43 argc, argv, base::Bind(&CmaTestSuite::Run, | 43 argc, argv, base::Bind(&CmaTestSuite::Run, |
| 44 base::Unretained(&test_suite))); | 44 base::Unretained(&test_suite))); |
| 45 } | 45 } |
| OLD | NEW |