Home
last modified time | relevance | path

Searched refs:mock_fd_interface (Results 1 – 1 of 1) sorted by relevance

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DGpuCapacityNodeTest.cpp60 GpuCapacityNodeTest() : mock_fd_interface(std::make_shared<NiceMock<MockFdInterface>>()) {} in GpuCapacityNodeTest()
61 std::shared_ptr<MockFdInterface> mock_fd_interface; member
73 EXPECT_CALL(*mock_fd_interface, close(fake_fd)).Times(1).WillOnce(Return(0)); in TEST_F()
74 EXPECT_CALL(*mock_fd_interface, close(another_fake_fd)).Times(1).WillOnce(Return(0)); in TEST_F()
75 GpuCapacityNode capacity_node(std::make_unique<FdInterfaceWrapper>(mock_fd_interface), fake_fd, in TEST_F()
80 EXPECT_CALL(*mock_fd_interface, open(StrEq(headroom_path), O_RDWR | O_CLOEXEC | O_NONBLOCK)) in TEST_F()
83 EXPECT_CALL(*mock_fd_interface, open(StrEq(freq_path), O_RDONLY | O_CLOEXEC | O_NONBLOCK)) in TEST_F()
86 EXPECT_CALL(*mock_fd_interface, close(another_fake_fd)).Times(1).WillOnce(Return(0)); in TEST_F()
87 EXPECT_CALL(*mock_fd_interface, close(fake_fd)).Times(1).WillOnce(Return(0)); in TEST_F()
89 std::make_unique<FdInterfaceWrapper>(mock_fd_interface), path); in TEST_F()
[all …]