diff options
author | vabr <vabr@chromium.org> | 2015-08-04 09:26:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-04 16:27:13 +0000 |
commit | 3db30f9fa710e97054703cee6909533b5bb0a96c (patch) | |
tree | 6505ae2edb17b0bb6d617468a299b973001ec29a /base | |
parent | d28fa85b631b9cc706e7efe3e77f8f383d53a05e (diff) | |
download | chromium_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.cc | 18 |
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; |