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

Unified Diff: net/test/scoped_disable_exit_on_dfatal.h

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/run_all_unittests.cc ('k') | net/test/scoped_disable_exit_on_dfatal.cc » ('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.h
diff --git a/net/test/scoped_disable_exit_on_dfatal.h b/net/test/scoped_disable_exit_on_dfatal.h
deleted file mode 100644
index 5df8ff75b9792af42827358b8f9af2de835a3341..0000000000000000000000000000000000000000
--- a/net/test/scoped_disable_exit_on_dfatal.h
+++ /dev/null
@@ -1,39 +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.
-
-#ifndef NET_QUIC_TEST_TOOLS_SCOPED_DISABLE_EXIT_ON_DFATAL_H_
-#define NET_QUIC_TEST_TOOLS_SCOPED_DISABLE_EXIT_ON_DFATAL_H_
-
-#include "base/logging.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-namespace test {
-
-
-// The ScopedDisableExitOnDFatal class is used to disable exiting the
-// program when we encounter a LOG(DFATAL) within the current block.
-// After we leave the current block, the default behavior is
-// restored.
-class ScopedDisableExitOnDFatal {
- public:
- ScopedDisableExitOnDFatal();
- ~ScopedDisableExitOnDFatal();
-
- private:
- // Currently active instance.
- static ScopedDisableExitOnDFatal* g_instance_;
-
- // Static function which is set as the logging assert handler.
- // Called when there is a check failure.
- static void LogAssertHandler(const std::string& msg);
-
- DISALLOW_COPY_AND_ASSIGN(ScopedDisableExitOnDFatal);
-};
-
-} // namespace test
-} // namespace net
-
-#endif // NET_QUIC_TEST_TOOLS_SCOPED_DISABLE_EXIT_ON_DFATAL_H_
« no previous file with comments | « net/test/run_all_unittests.cc ('k') | net/test/scoped_disable_exit_on_dfatal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698