blob: 4050f9b4027900625cbaf3eaf350c919783034e3 [file] [log] [blame]
// Copyright (c) 2010 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 <atlbase.h>
#include <atlcom.h>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "gtest/gtest.h"
class ObligatoryModule: public CAtlExeModuleT<ObligatoryModule> {
};
ObligatoryModule g_obligatory_atl_module;
static base::AtExitManager* g_at_exit_manager = NULL;
void DeleteAllSingletons() {
if (g_at_exit_manager) {
g_at_exit_manager->ProcessCallbacksNow();
}
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
base::AtExitManager at_exit_manager;
g_at_exit_manager = &at_exit_manager;
CommandLine::Init(argc, argv);
RUN_ALL_TESTS();
g_at_exit_manager = NULL;
}