Commit add6fd18 authored by Aga Wronska's avatar Aga Wronska Committed by Commit Bot

Fix DeviceManagementRequestAuthTest.CannotUseOAuthTokenAsAuthData in official builds.

Removed string from ASSERT_DEATH, because official tests strip
the string passed to CHECK(false) and LOG(FATAL).

Bug: 913441
Change-Id: Ib68905b60d214064f341262789b31f763e8108b3
Reviewed-on: https://chromium-review.googlesource.com/c/1370307Reviewed-by: default avatarLutz Justen <ljusten@chromium.org>
Commit-Queue: Aga Wronska <agawronska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615558}
parent e90c3a03
......@@ -1195,7 +1195,7 @@ TEST_F(DeviceManagementRequestAuthTest, CannotUseOAuthTokenAsAuthData) {
service_->CreateJob(DeviceManagementRequestJob::TYPE_POLICY_FETCH,
shared_url_loader_factory_));
ASSERT_DEATH(request_job->SetAuthData(DMAuth::FromOAuthToken(kOAuthToken)),
"This method does not accept OAuth2");
"");
}
} // namespace policy
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