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

Unified Diff: sandbox/linux/services/yama_unittests.cc

Issue 1180373004: Cleanup: Remove various DoNothing functions and use base::DoNothing(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « sandbox/linux/services/scoped_process_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/services/yama_unittests.cc
diff --git a/sandbox/linux/services/yama_unittests.cc b/sandbox/linux/services/yama_unittests.cc
index 204cfd6a4448c0d9955c924f08a1a6d3914f2193..398eafecf2ad2ffba82e84ea9707b92b1952423c 100644
--- a/sandbox/linux/services/yama_unittests.cc
+++ b/sandbox/linux/services/yama_unittests.cc
@@ -10,6 +10,7 @@
#include <unistd.h>
#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/compiler_specific.h"
#include "base/posix/eintr_wrapper.h"
#include "base/strings/string_util.h"
@@ -151,14 +152,12 @@ TEST(Yama, RestrictPtraceWorks) {
}
}
-void DoNothing() {}
-
SANDBOX_TEST(Yama, RestrictPtraceIsDefault) {
if (!Yama::IsPresent() || HasLinux32Bug())
return;
CHECK(Yama::DisableYamaRestrictions());
- ScopedProcess process1(base::Bind(&DoNothing));
+ ScopedProcess process1(base::Bind(&base::DoNothing));
if (Yama::IsEnforcing()) {
// Check that process1 is protected by Yama, even though it has
« no previous file with comments | « sandbox/linux/services/scoped_process_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698