summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorvabr <vabr@chromium.org>2015-08-04 09:26:05 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-04 16:27:13 +0000
commit3db30f9fa710e97054703cee6909533b5bb0a96c (patch)
tree6505ae2edb17b0bb6d617468a299b973001ec29a /base
parentd28fa85b631b9cc706e7efe3e77f8f383d53a05e (diff)
downloadchromium_src-3db30f9fa710e97054703cee6909533b5bb0a96c.zip
chromium_src-3db30f9fa710e97054703cee6909533b5bb0a96c.tar.gz
chromium_src-3db30f9fa710e97054703cee6909533b5bb0a96c.tar.bz2
Namespace clean-up in histogram_tester_unittest.cc
This CL introduces an anonymous namespace instead of using "static" for global constants. It is a follow-up to https://codereview.chromium.org/1264123002/. R=thestig@chromium.org BUG=473689 Review URL: https://codereview.chromium.org/1271933002 Cr-Commit-Position: refs/heads/master@{#341732}
Diffstat (limited to 'base')
-rw-r--r--base/test/histogram_tester_unittest.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/base/test/histogram_tester_unittest.cc b/base/test/histogram_tester_unittest.cc
index 8452013..d4812d7 100644
--- a/base/test/histogram_tester_unittest.cc
+++ b/base/test/histogram_tester_unittest.cc
@@ -10,15 +10,19 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace base {
-
using ::testing::ElementsAre;
-static const char kHistogram1[] = "Test1";
-static const char kHistogram2[] = "Test2";
-static const char kHistogram3[] = "Test3";
-static const char kHistogram4[] = "Test4";
-static const char kHistogram5[] = "Test5";
+namespace {
+
+const char kHistogram1[] = "Test1";
+const char kHistogram2[] = "Test2";
+const char kHistogram3[] = "Test3";
+const char kHistogram4[] = "Test4";
+const char kHistogram5[] = "Test5";
+
+} // namespace
+
+namespace base {
typedef testing::Test HistogramTesterTest;