diff --git a/tests/assembler/emitter_test_ecmascript.cpp b/tests/assembler/emitter_test_ecmascript.cpp index e15a983e18d872dff5542c59c00431dd6bfa82c7..db8e18ddb8d03281ed1bffe05ed74c6f306ee92b 100644 --- a/tests/assembler/emitter_test_ecmascript.cpp +++ b/tests/assembler/emitter_test_ecmascript.cpp @@ -38,7 +38,9 @@ namespace panda::test { -using namespace panda::pandasm; +using panda::pandasm::AsmEmitter; +using panda::pandasm::Error; +using panda::pandasm::Parser; static const uint8_t *GetTypeDescriptor(const std::string &name, std::string *storage) { @@ -96,8 +98,8 @@ TEST(emittertests, ecmascript_debuginfo) panda_file::DebugInfoExtractor extractor(pf.get()); auto methods = extractor.GetMethodIdList(); ASSERT_EQ(methods.size(), 1); - auto line_table = extractor.GetLineNumberTable(methods[0]); - auto column_table = extractor.GetColumnNumberTable(methods[0]); + const auto &line_table = extractor.GetLineNumberTable(methods[0]); + const auto &column_table = extractor.GetColumnNumberTable(methods[0]); EXPECT_EQ(line_table.size(), 1); EXPECT_EQ(column_table.size(), 1); diff --git a/tests/assembler/parser_test_ecmascript.cpp b/tests/assembler/parser_test_ecmascript.cpp index d42dd2f1ca57b1e6e17f68e44003a4ce6e1b3f49..cb16db5799ad445b2266eefb48572add91d7a789 100644 --- a/tests/assembler/parser_test_ecmascript.cpp +++ b/tests/assembler/parser_test_ecmascript.cpp @@ -18,7 +18,8 @@ #include #include -using namespace panda::pandasm; +using panda::pandasm::Error; +using panda::pandasm::Parser; TEST(parsertests, calli_dyn_3args) {