Roll skia to r1241.
[chromium-blink-merge.git] / chrome_frame / chrome_frame_unittest_main.cc
blob4050f9b4027900625cbaf3eaf350c919783034e3
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.
5 #include <atlbase.h>
6 #include <atlcom.h>
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);
31 RUN_ALL_TESTS();
33 g_at_exit_manager = NULL;