Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: media/blink/run_all_unittests.cc

Issue 1179953006: [Merge to M44] Chromium changes to statically link ffmpeg. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/run_all_unittests.cc ('k') | media/cast/cast_unittests.isolate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "media/base/media.h" 10 #include "media/base/media.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #if defined(OS_ANDROID) 69 #if defined(OS_ANDROID)
70 // Register JNI bindings for android. 70 // Register JNI bindings for android.
71 JNIEnv* env = base::android::AttachCurrentThread(); 71 JNIEnv* env = base::android::AttachCurrentThread();
72 // Needed for surface texture support. 72 // Needed for surface texture support.
73 ui::gl::android::RegisterJni(env); 73 ui::gl::android::RegisterJni(env);
74 media::RegisterJni(env); 74 media::RegisterJni(env);
75 #endif 75 #endif
76 76
77 // Run this here instead of main() to ensure an AtExitManager is already 77 // Run this here instead of main() to ensure an AtExitManager is already
78 // present. 78 // present.
79 media::InitializeMediaLibraryForTesting(); 79 media::InitializeMediaLibrary();
80 80
81 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 81 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
82 gin::V8Initializer::LoadV8Snapshot(); 82 gin::V8Initializer::LoadV8Snapshot();
83 #endif 83 #endif
84 84
85 // Dummy task runner is initialized here because the blink::initialize creates 85 // Dummy task runner is initialized here because the blink::initialize creates
86 // IsolateHolder which needs the current task runner handle. There should be 86 // IsolateHolder which needs the current task runner handle. There should be
87 // no task posted to this task runner. 87 // no task posted to this task runner.
88 scoped_ptr<base::MessageLoop> message_loop; 88 scoped_ptr<base::MessageLoop> message_loop;
89 if (!base::MessageLoop::current()) 89 if (!base::MessageLoop::current())
90 message_loop.reset(new base::MessageLoop()); 90 message_loop.reset(new base::MessageLoop());
91 blink::initialize(blink_platform_support_.get()); 91 blink::initialize(blink_platform_support_.get());
92 } 92 }
93 93
94 int main(int argc, char** argv) { 94 int main(int argc, char** argv) {
95 BlinkMediaTestSuite test_suite(argc, argv); 95 BlinkMediaTestSuite test_suite(argc, argv);
96 96
97 return base::LaunchUnitTests( 97 return base::LaunchUnitTests(
98 argc, argv, base::Bind(&BlinkMediaTestSuite::Run, 98 argc, argv, base::Bind(&BlinkMediaTestSuite::Run,
99 base::Unretained(&test_suite))); 99 base::Unretained(&test_suite)));
100 } 100 }
OLDNEW
« no previous file with comments | « media/base/run_all_unittests.cc ('k') | media/cast/cast_unittests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698