Lines Matching refs:crypto_util_proxy_

80       : crypto_util_proxy_(&dispatcher_) {
91 crypto_util_proxy_.process_manager_ = &process_manager_;
92 crypto_util_proxy_.file_io_ = &file_io_;
96 // Note that |crypto_util_proxy_| needs its process manager reference in
126 EXPECT_CALL(crypto_util_proxy_, StartShimForCommand(_, _, _))
127 .WillOnce(Invoke(&crypto_util_proxy_,
162 crypto_util_proxy_.StartShimForCommand(
165 crypto_util_proxy_.base::SupportsWeakPtr<MockCryptoUtilProxy>::
167 EXPECT_EQ(shim_stdin, crypto_util_proxy_.input_buffer_);
168 EXPECT_TRUE(crypto_util_proxy_.output_buffer_.empty());
169 EXPECT_EQ(crypto_util_proxy_.shim_pid_, kTestShimPid);
170 Mock::VerifyAndClearExpectations(&crypto_util_proxy_);
176 if (crypto_util_proxy_.shim_stdin_ > -1) {
178 Close(crypto_util_proxy_.shim_stdin_)).Times(1);
180 if (crypto_util_proxy_.shim_stdout_ > -1) {
182 Close(crypto_util_proxy_.shim_stdout_)).Times(1);
184 if (crypto_util_proxy_.shim_pid_) {
189 EXPECT_CALL(process_manager_, StopProcess(crypto_util_proxy_.shim_pid_))
197 EXPECT_FALSE(crypto_util_proxy_.shim_pid_);
216 crypto_util_proxy_.CleanupShim(error);
217 crypto_util_proxy_.OnShimDeath(-1);
218 EXPECT_EQ(crypto_util_proxy_.shim_pid_, 0);
226 MockCryptoUtilProxy crypto_util_proxy_;
235 EXPECT_CALL(crypto_util_proxy_,
237 .WillOnce(Invoke(&crypto_util_proxy_,
242 EXPECT_CALL(crypto_util_proxy_,
247 crypto_util_proxy_.
250 EXPECT_TRUE(crypto_util_proxy_.VerifyDestination(kTestCertificate,
264 EXPECT_CALL(crypto_util_proxy_, EncryptData(_, _, _, _))
265 .WillOnce(Invoke(&crypto_util_proxy_,
267 EXPECT_CALL(crypto_util_proxy_,
272 crypto_util_proxy_.
279 EXPECT_TRUE(crypto_util_proxy_.EncryptData(kTestPublicKey, kTestData,
294 EXPECT_CALL(crypto_util_proxy_,
300 crypto_util_proxy_.HandleShimError(e);
305 EXPECT_CALL(crypto_util_proxy_,
315 crypto_util_proxy_.HandleShimOutput(&data);
325 EXPECT_CALL(crypto_util_proxy_, TestResultHandlerCallback(
329 crypto_util_proxy_.HandleShimError(e);
335 EXPECT_CALL(crypto_util_proxy_, TestResultHandlerCallback(
339 crypto_util_proxy_.HandleShimTimeout();
346 EXPECT_FALSE(crypto_util_proxy_.RealStartShimForCommand(
349 crypto_util_proxy_.
378 crypto_util_proxy_.HandleShimStdinReady(crypto_util_proxy_.shim_stdin_);
379 Mock::VerifyAndClearExpectations(&crypto_util_proxy_);
394 crypto_util_proxy_.HandleShimOutput(&data);
401 crypto_util_proxy_,
405 crypto_util_proxy_.HandleShimOutput(&data);