Commit 1ab31979 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

DeviceManagementServiceIntegrationTest

s/QuitWhenIdle/Quit

Bug: none
Change-Id: Ideb2560ec8ba637e4b29644a73e9a32e68cba724
Reviewed-on: https://chromium-review.googlesource.com/c/1482980Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635141}
parent deb7415c
......@@ -125,7 +125,7 @@ class DeviceManagementServiceIntegrationTest
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(DoAll(
Invoke(this, &DeviceManagementServiceIntegrationTest::RecordToken),
InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle)));
InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_REGISTRATION, GetFactory()));
job->SetOAuthTokenParameter("oauth_token");
......@@ -182,7 +182,7 @@ IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest,
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(DoAll(
Invoke(this, &DeviceManagementServiceIntegrationTest::RecordAuthCode),
InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle)));
InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_API_AUTH_CODE_FETCH, GetFactory()));
job->SetAuthData(DMAuth::FromDMToken(token_));
......@@ -202,7 +202,7 @@ IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest, PolicyFetch) {
base::RunLoop run_loop;
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle));
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_POLICY_FETCH, GetFactory()));
job->SetAuthData(DMAuth::FromDMToken(token_));
......@@ -220,7 +220,7 @@ IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest, Unregistration) {
base::RunLoop run_loop;
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle));
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_UNREGISTRATION, GetFactory()));
job->SetAuthData(DMAuth::FromDMToken(token_));
......@@ -234,7 +234,7 @@ IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest, Unregistration) {
IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest, AutoEnrollment) {
base::RunLoop run_loop;
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle));
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_AUTO_ENROLLMENT, GetFactory()));
job->SetAuthData(DMAuth::NoAuth());
......@@ -252,7 +252,7 @@ IN_PROC_BROWSER_TEST_P(DeviceManagementServiceIntegrationTest,
base::RunLoop run_loop;
EXPECT_CALL(*this, OnJobDone(DM_STATUS_SUCCESS, _, _))
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::QuitWhenIdle));
.WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
std::unique_ptr<DeviceManagementRequestJob> job(service_->CreateJob(
DeviceManagementRequestJob::TYPE_UPLOAD_APP_INSTALL_REPORT,
GetFactory()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment