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

Unified Diff: util/stdlib/strlcpy_test.cc

Issue 635883002: Don’t use using directives (“using namespace”) in tests (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 2 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 | « util/stdlib/string_number_conversion_test.cc ('k') | util/stdlib/strnlen_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/stdlib/strlcpy_test.cc
diff --git a/util/stdlib/strlcpy_test.cc b/util/stdlib/strlcpy_test.cc
index 1cf187c285e113088f1ee69bfbaa96dad1d1e7f3..8eb656daa392f5c107dd4956ec8c96d2ce5293e3 100644
--- a/util/stdlib/strlcpy_test.cc
+++ b/util/stdlib/strlcpy_test.cc
@@ -23,10 +23,10 @@
#include "base/strings/stringprintf.h"
#include "gtest/gtest.h"
+namespace crashpad {
+namespace test {
namespace {
-using namespace crashpad;
-
TEST(strlcpy, c16lcpy) {
// Use a destination buffer that’s larger than the length passed to c16lcpy.
// The unused portion is a guard area that must not be written to.
@@ -89,3 +89,5 @@ TEST(strlcpy, c16lcpy) {
}
} // namespace
+} // namespace test
+} // namespace crashpad
« no previous file with comments | « util/stdlib/string_number_conversion_test.cc ('k') | util/stdlib/strnlen_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698