Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/util/internal/
Dexpecting_objectwriter.h91 explicit ExpectingObjectWriter(MockObjectWriter* mock) : mock_(mock) {} in ExpectingObjectWriter()
95 ? EXPECT_CALL(*mock_, StartObject(IsEmpty())) in StartObject()
96 : EXPECT_CALL(*mock_, StartObject(StrEq(name.ToString())))) in StartObject()
97 .WillOnce(Return(mock_)) in StartObject()
103 EXPECT_CALL(*mock_, EndObject()) in EndObject()
104 .WillOnce(Return(mock_)) in EndObject()
111 ? EXPECT_CALL(*mock_, StartList(IsEmpty())) in StartList()
112 : EXPECT_CALL(*mock_, StartList(StrEq(name.ToString())))) in StartList()
113 .WillOnce(Return(mock_)) in StartList()
119 EXPECT_CALL(*mock_, EndList()) in EndList()
[all …]
Ddefault_value_objectwriter_test.cc52 : helper_(GetParam()), mock_(), expects_(&mock_) { in BaseDefaultValueObjectWriterTest()
55 string(kTypeServiceBaseUrl) + "/" + descriptor->full_name(), &mock_)); in BaseDefaultValueObjectWriterTest()
61 MockObjectWriter mock_; member in google::protobuf::util::converter::testing::BaseDefaultValueObjectWriterTest
Dprotostream_objectsource_test.cc101 mock_(), in ProtostreamObjectSourceTest()
102 ow_(&mock_), in ProtostreamObjectSourceTest()
125 return os->WriteTo(&mock_); in ExecuteTest()
273 ::testing::NiceMock<MockObjectWriter> mock_;
471 EXPECT_CALL(mock_, StartList(_)).Times(1); in TEST_P()
472 EXPECT_CALL(mock_, EndList()).Times(1); in TEST_P()
Djson_stream_parser_test.cc86 JsonStreamParserTest() : mock_(), ow_(&mock_) {} in JsonStreamParserTest()
90 JsonStreamParser parser(&mock_); in RunTest()
136 MockObjectWriter mock_; member in google::protobuf::util::converter::JsonStreamParserTest
/external/libchrome/base/files/
Dfile_descriptor_watcher_posix_unittest.cc107 Bind(&Mock::ReadableCallback, Unretained(&mock_))); in WatchReadable()
123 Bind(&Mock::WritableCallback, Unretained(&mock_))); in WatchWritable()
144 testing::StrictMock<Mock> mock_; member in base::__anon7ab4a7fa0111::FileDescriptorWatcherTest
175 EXPECT_CALL(mock_, WritableCallback()) in TEST_P()
187 EXPECT_CALL(mock_, ReadableCallback()) in TEST_P()
193 testing::Mock::VerifyAndClear(&mock_); in TEST_P()
207 EXPECT_CALL(mock_, ReadableCallback()) in TEST_P()
214 testing::Mock::VerifyAndClear(&mock_); in TEST_P()
228 EXPECT_CALL(mock_, ReadableCallback()) in TEST_P()
238 testing::Mock::VerifyAndClear(&mock_); in TEST_P()
[all …]
/external/googletest/googlemock/include/gmock/
Dgmock-spec-builders.h1857 mock_.SetOwnerAndName(this, "Call"); in Call()
1858 return mock_.Invoke(std::forward<Args>(args)...); in Call()
1862 mock_.RegisterOwner(this); in gmock_Call()
1863 return mock_.With(std::move(m)...); in gmock_Call()
1872 mutable internal::FunctionMocker<R(Args...)> mock_;