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.
7 #include "base/at_exit.h"
8 #include "base/command_line.h"
9 #include "gtest/gtest.h"
11 class ObligatoryModule
: public CAtlExeModuleT
<ObligatoryModule
> {
14 ObligatoryModule g_obligatory_atl_module
;
16 static base::AtExitManager
* g_at_exit_manager
= NULL
;
18 void DeleteAllSingletons() {
19 if (g_at_exit_manager
) {
20 g_at_exit_manager
->ProcessCallbacksNow();
24 int main(int argc
, char** argv
) {
25 testing::InitGoogleTest(&argc
, argv
);
27 base::AtExitManager at_exit_manager
;
28 g_at_exit_manager
= &at_exit_manager
;
29 CommandLine::Init(argc
, argv
);
33 g_at_exit_manager
= NULL
;