Second attempt at removing executable bits from media/mf files
[chromium-blink-merge.git] / media / mf / test / run_all_unittests.cc
blob6551d59ac7bccbb79be68f0d9792553c9c56ee73
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
3 // found in the LICENSE file.
5 #include <cstdio>
7 #include "base/test/test_suite.h"
8 #include "media/base/media.h"
9 #include "media/ffmpeg/ffmpeg_common.h"
10 #include "media/ffmpeg/file_protocol.h"
12 static bool InitFFmpeg() {
13 if (!media::InitializeMediaLibrary(FilePath()))
14 return false;
15 avcodec_init();
16 av_register_all();
17 av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
18 return true;
21 int main(int argc, char** argv) {
22 if (!InitFFmpeg()) {
23 fprintf(stderr, "Failed to init ffmpeg\n");
24 return -1;
26 return TestSuite(argc, argv).Run();