1116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
3116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// found in the LICENSE file.
4116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
5116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "base/test/launcher/unit_test_launcher.h"
6116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "base/test/test_suite.h"
7116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "media/base/media.h"
8116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "net/socket/ssl_server_socket.h"
9116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
10116680a4aac90f2aa7413d9095a592090648e557Ben Murdochint main(int argc, char** argv) {
11116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  base::TestSuite test_suite(argc, argv);
12116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
13116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // Enable support for SSL server sockets, which must be done while
14116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // single-threaded.
15116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  net::EnableSSLServerSockets();
16116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
17116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  // Ensures runtime specific CPU features are initialized.
18116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  media::InitializeCPUSpecificMediaFeatures();
19116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch
20116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch  return base::LaunchUnitTests(
21116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch      argc, argv, base::Bind(&base::TestSuite::Run,
22116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch                             base::Unretained(&test_suite)));
23116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch}
24