blob: 1942124e9975ffb7e1103ac38fa3fc6b1a3f2d36 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/main_hook.h"
#include "base/test/test_suite.h"
#include "media/base/media.h"
class TestSuiteNoAtExit : public base::TestSuite {
TestSuiteNoAtExit(int argc, char** argv) : TestSuite(argc, argv) {}
virtual ~TestSuiteNoAtExit() {}
virtual void Initialize();
void TestSuiteNoAtExit::Initialize() {
// Run TestSuite::Initialize first so that logging is initialized.
#if !defined(__LB_SHELL__) && !defined(COBALT)
// Run this here instead of main() to ensure an AtExitManager is already
// present.
int main(int argc, char** argv) {
MainHook hook(main, argc, argv);
return TestSuiteNoAtExit(argc, argv).Run();