OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_path.h" |
| 6 #include "base/logging.h" |
| 7 #include "base/path_service.h" |
5 #include "base/test/test_suite.h" | 8 #include "base/test/test_suite.h" |
| 9 #include "media/base/media.h" |
6 | 10 |
7 int main(int argc, char** argv) { | 11 int main(int argc, char** argv) { |
8 return base::TestSuite(argc, argv).Run(); | 12 base::TestSuite test_suite(argc, argv); |
| 13 |
| 14 // Load the media library so we can use libvpx. |
| 15 FilePath path; |
| 16 PathService::Get(base::DIR_MODULE, &path); |
| 17 CHECK(media::InitializeMediaLibrary(path)) |
| 18 << "Cannot load media library"; |
| 19 return test_suite.Run(); |
9 } | 20 } |
OLD | NEW |