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

Unified Diff: net/test/scoped_disable_exit_on_dfatal.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/test/scoped_disable_exit_on_dfatal.h ('k') | net/test/scoped_mock_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/scoped_disable_exit_on_dfatal.cc
diff --git a/net/test/scoped_disable_exit_on_dfatal.cc b/net/test/scoped_disable_exit_on_dfatal.cc
deleted file mode 100644
index f9091261bc56464288820ade1caeb3b90d0bad73..0000000000000000000000000000000000000000
--- a/net/test/scoped_disable_exit_on_dfatal.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 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 "net/test/scoped_disable_exit_on_dfatal.h"
-
-#include "base/logging.h"
-
-namespace net {
-namespace test {
-
-// static
-ScopedDisableExitOnDFatal* ScopedDisableExitOnDFatal::g_instance_ = NULL;
-
-ScopedDisableExitOnDFatal::ScopedDisableExitOnDFatal() {
- CHECK(!g_instance_);
- g_instance_ = this;
- logging::SetLogAssertHandler(LogAssertHandler);
-}
-
-ScopedDisableExitOnDFatal::~ScopedDisableExitOnDFatal() {
- CHECK_EQ(g_instance_, this);
- logging::SetLogAssertHandler(NULL);
- g_instance_ = NULL;
-}
-
-// static
-void ScopedDisableExitOnDFatal::LogAssertHandler(const std::string& str) {
- // Simply swallow the assert.
-}
-
-} // namespace test
-} // namespace net
« no previous file with comments | « net/test/scoped_disable_exit_on_dfatal.h ('k') | net/test/scoped_mock_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698