summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:59:24 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-10 21:59:24 +0000
commit4f74b78fabcacdc703d725cdd704ec5edb141d95 (patch)
tree38d73536a229567cbecd640729668c8af3316c49
parent7e61bb63138faa706154f3c6da31b1cdf8dd8b65 (diff)
downloadchromium_src-4f74b78fabcacdc703d725cdd704ec5edb141d95.zip
chromium_src-4f74b78fabcacdc703d725cdd704ec5edb141d95.tar.gz
chromium_src-4f74b78fabcacdc703d725cdd704ec5edb141d95.tar.bz2
base: Replace "using namespace base;" by wrapping the tests around "namespace base { ... }"
BUG=82078 TEST=base_unittests R=evan@chromium.org Review URL: http://codereview.chromium.org/7000011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84870 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/string_piece_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/string_piece_unittest.cc b/base/string_piece_unittest.cc
index 8289cf3..c03b651 100644
--- a/base/string_piece_unittest.cc
+++ b/base/string_piece_unittest.cc
@@ -1,14 +1,13 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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 <string>
#include "base/string_piece.h"
-
#include "testing/gtest/include/gtest/gtest.h"
-using namespace base;
+namespace base {
TEST(StringPieceTest, CheckComparisonOperators) {
#define CMP_Y(op, x, y) \
@@ -540,3 +539,5 @@ TEST(StringPieceTest, HeterogenousStringPieceEquals) {
ASSERT_TRUE(StringPiece("hello") == std::string("hello"));
ASSERT_TRUE("hello" == StringPiece("hello"));
}
+
+} // namespace base