Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5992)

Unified Diff: chrome_frame/chrome_frame_unittest_main.cc

Issue 7259009: Enable crash reporting for chrome frame unit tests. This ensures that crashes are reported for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_unittest_main.cc
===================================================================
--- chrome_frame/chrome_frame_unittest_main.cc (revision 90395)
+++ chrome_frame/chrome_frame_unittest_main.cc (working copy)
@@ -6,6 +6,9 @@
#include <atlcom.h>
#include "base/at_exit.h"
#include "base/command_line.h"
+#include "base/process.h"
+#include "chrome_frame/crash_server_init.h"
+#include "chrome_frame/test/chrome_frame_test_utils.h"
#include "gtest/gtest.h"
class ObligatoryModule: public CAtlExeModuleT<ObligatoryModule> {
@@ -26,9 +29,18 @@
base::AtExitManager at_exit_manager;
g_at_exit_manager = &at_exit_manager;
+
+ base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
+
+ google_breakpad::scoped_ptr<google_breakpad::ExceptionHandler> breakpad(
+ InitializeCrashReporting(HEADLESS));
+
CommandLine::Init(argc, argv);
RUN_ALL_TESTS();
g_at_exit_manager = NULL;
+
+ if (crash_service)
+ base::KillProcess(crash_service, 0, false);
}
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698