summaryrefslogtreecommitdiff
path: root/test/cctest/node_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/cctest/node_test_fixture.h')
-rw-r--r--test/cctest/node_test_fixture.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h
index 775a211f54..f4c97b0502 100644
--- a/test/cctest/node_test_fixture.h
+++ b/test/cctest/node_test_fixture.h
@@ -55,21 +55,20 @@ struct Argv {
using ArrayBufferUniquePtr = std::unique_ptr<node::ArrayBufferAllocator,
decltype(&node::FreeArrayBufferAllocator)>;
-using TracingControllerUniquePtr = std::unique_ptr<v8::TracingController>;
+using TracingAgentUniquePtr = std::unique_ptr<node::tracing::Agent>;
using NodePlatformUniquePtr = std::unique_ptr<node::NodePlatform>;
class NodeTestFixture : public ::testing::Test {
protected:
static ArrayBufferUniquePtr allocator;
- static TracingControllerUniquePtr tracing_controller;
+ static TracingAgentUniquePtr tracing_agent;
static NodePlatformUniquePtr platform;
static uv_loop_t current_loop;
v8::Isolate* isolate_;
static void SetUpTestCase() {
- tracing_controller.reset(new v8::TracingController());
- node::tracing::TraceEventHelper::SetTracingController(
- tracing_controller.get());
+ tracing_agent.reset(new node::tracing::Agent());
+ node::tracing::TraceEventHelper::SetAgent(tracing_agent.get());
CHECK_EQ(0, uv_loop_init(&current_loop));
platform.reset(static_cast<node::NodePlatform*>(
node::InitializeV8Platform(4)));