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

Unified Diff: content/test/browser_test_base.h

Issue 10836148: Don't print the callstack in forked browser test processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify Created 8 years, 4 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/test/base/in_process_browser_test.cc ('k') | content/test/browser_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/browser_test_base.h
===================================================================
--- content/test/browser_test_base.h (revision 150562)
+++ content/test/browser_test_base.h (working copy)
@@ -60,6 +60,14 @@
const net::TestServer* test_server() const { return test_server_.get(); }
net::TestServer* test_server() { return test_server_.get(); }
+#if defined(OS_POSIX)
+ // This is only needed by a test that raises SIGTERM to ensure that a specific
+ // codepath is taken.
+ void DisableSIGTERMHandling() {
+ handle_sigterm_ = false;
+ }
+#endif
+
// This function is meant only for classes that directly derive from this
// class to construct the test server in their constructor. They might need to
// call this after setting up the paths. Actual test cases should never call
@@ -73,6 +81,10 @@
// Testing server, started on demand.
scoped_ptr<net::TestServer> test_server_;
+
+#if defined(OS_POSIX)
+ bool handle_sigterm_;
+#endif
};
#endif // CONTENT_TEST_BROWSER_TEST_BASE_H_
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | content/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698