summaryrefslogtreecommitdiffstats
path: root/src/test/test_rgw_token.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-11 05:53:01 +0200
committerKefu Chai <kchai@redhat.com>2021-08-13 06:23:36 +0200
commit1d1e173876db1067d001e688b8eff0375908226f (patch)
tree3f7924142da0d53816a341ef482e935f7b7db4d1 /src/test/test_rgw_token.cc
parenttest/erasure-code: build without "using namespace std" (diff)
downloadceph-1d1e173876db1067d001e688b8eff0375908226f.tar.xz
ceph-1d1e173876db1067d001e688b8eff0375908226f.zip
test: : build without "using namespace std"
* add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test/test_rgw_token.cc')
-rw-r--r--src/test/test_rgw_token.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_rgw_token.cc b/src/test/test_rgw_token.cc
index b9174781933..321e26fcc9c 100644
--- a/src/test/test_rgw_token.cc
+++ b/src/test/test_rgw_token.cc
@@ -49,6 +49,8 @@ namespace {
bool verbose {false};
}
+using namespace std;
+
TEST(TOKEN, INIT) {
formatter = new JSONFormatter(true /* pretty */);
ASSERT_NE(formatter, nullptr);