From 8f1aa3c5e806fe7f840df1ac78218aafcdb75885 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 20 Jun 2018 10:31:04 +0200 Subject: [PATCH] test: use aliases for smart pointers in fixture PR-URL: https://github.com/nodejs/node/pull/21419 Reviewed-By: Ben Noordhuis --- test/cctest/node_test_fixture.cc | 4 ++-- test/cctest/node_test_fixture.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/cctest/node_test_fixture.cc b/test/cctest/node_test_fixture.cc index 1fe6ba477bee65..acc975a4cb3c6e 100644 --- a/test/cctest/node_test_fixture.cc +++ b/test/cctest/node_test_fixture.cc @@ -2,5 +2,5 @@ ArrayBufferUniquePtr NodeTestFixture::allocator{nullptr, nullptr}; uv_loop_t NodeTestFixture::current_loop; -std::unique_ptr NodeTestFixture::platform; -std::unique_ptr NodeTestFixture::tracing_controller; +NodePlatformUniquePtr NodeTestFixture::platform; +TracingControllerUniquePtr NodeTestFixture::tracing_controller; diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index c9193ffffa76c7..8cba5d99ba3c64 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -55,12 +55,14 @@ struct Argv { using ArrayBufferUniquePtr = std::unique_ptr; +using TracingControllerUniquePtr = std::unique_ptr; +using NodePlatformUniquePtr = std::unique_ptr; class NodeTestFixture : public ::testing::Test { protected: static ArrayBufferUniquePtr allocator; - static std::unique_ptr tracing_controller; - static std::unique_ptr platform; + static TracingControllerUniquePtr tracing_controller; + static NodePlatformUniquePtr platform; static uv_loop_t current_loop; v8::Isolate* isolate_;