diff options
Diffstat (limited to 'jni/node_test.cpp')
-rw-r--r-- | jni/node_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jni/node_test.cpp b/jni/node_test.cpp index 1c7103c8f..c72c8ee1c 100644 --- a/jni/node_test.cpp +++ b/jni/node_test.cpp @@ -200,8 +200,7 @@ TEST_F(NodeTest, LookupAbsolutePath) { TEST_F(NodeTest, AddDestroyHandle) { unique_node_ptr node = CreateNode(nullptr, "/path"); - handle* h = new handle("/path"); - h->cached = true; + handle* h = new handle("/path", -1, new mediaprovider::fuse::RedactionInfo, true /* cached */); node->AddHandle(h); ASSERT_TRUE(node->HasCachedHandle()); @@ -212,6 +211,7 @@ TEST_F(NodeTest, AddDestroyHandle) { // the node in question. EXPECT_DEATH(node->DestroyHandle(h), ""); EXPECT_DEATH(node->DestroyHandle(nullptr), ""); - std::unique_ptr<handle> h2(new handle("/path2")); + std::unique_ptr<handle> h2( + new handle("/path2", -1, new mediaprovider::fuse::RedactionInfo, true /* cached */)); EXPECT_DEATH(node->DestroyHandle(h2.get()), ""); } |