/system/core/fastboot/ |
tcp_test.cpp | 98 mock_ = new SocketMock; 99 mock_->ExpectSend("FB01"); 100 mock_->AddReceive("FB01"); 103 transport_ = tcp::internal::Connect(std::unique_ptr<Socket>(mock_), &error); 124 SocketMock* mock_ = nullptr; member in class:TcpTest 129 mock_->ExpectSend(std::string{0, 0, 0, 0, 0, 0, 0, 3} + "foo"); 135 mock_->AddReceive(std::string{0, 0, 0, 0, 0, 0, 0, 3}); 136 mock_->AddReceive("foo"); 143 mock_->AddReceive(std::string{0, 0, 0, 0}); 144 mock_->AddReceive(std::string{0, 0, 0, 3}) [all...] |
/art/compiler/linker/ |
multi_oat_relative_patcher_test.cc | 116 mock_ = mock.get(); 122 MockPatcher* mock_; member in class:art::linker::MultiOatRelativePatcherTest 170 ASSERT_EQ(adjustment1 + method1_offset, mock_->last_reserve_offset_); 171 ASSERT_TRUE(EqualRef(ref1, mock_->last_reserve_method_)); 176 mock_->next_reserve_adjustment_ = method2_reserve_adjustment; 178 ASSERT_EQ(adjustment1 + method2_offset, mock_->last_reserve_offset_); 179 ASSERT_TRUE(EqualRef(ref2, mock_->last_reserve_method_)); 184 ASSERT_EQ(adjustment1 + end1_offset, mock_->last_reserve_offset_); 185 ASSERT_TRUE(EqualRef(kNullMethodRef, mock_->last_reserve_method_)); 193 ASSERT_EQ(adjustment2 + method3_offset, mock_->last_reserve_offset_) [all...] |
/system/tpm/trunks/ |
Makefile | 29 TEST_OBJS := $(filter %_test.o trunks_testrunner.o mock_%.o, $(CXX_OBJECTS))
|
/external/v8/test/unittests/ |
counters-unittest.cc | 30 aggregated_ = AggregatedMemoryHistogram<MockHistogram>(&mock_); 38 std::vector<int>* samples() { return mock_.samples(); } 42 MockHistogram mock_; member in class:v8::internal::__anon25361::AggregatedMemoryHistogramTest
|