Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Veronica Veremjova authored and LitvinenkoIra committed Sep 26, 2018
1 parent 1219419 commit ef93b27
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ TEST_F(PolicyHandlerTest, OnDeviceConsentChanged_ConsentAllowed) {
EXPECT_CALL(*mock_app_, policy_app_id()).WillOnce(Return(kPolicyAppId_));

EXPECT_CALL(*mock_policy_manager_, IsPredataPolicy(kPolicyAppId_))
.WillOnce(Return(true));
.WillRepeatedly(Return(true));

EXPECT_CALL(*mock_policy_manager_,
ReactOnUserDevConsentForApp(kPolicyAppId_, is_allowed));
Expand Down Expand Up @@ -1821,7 +1821,7 @@ TEST_F(PolicyHandlerTest, OnDeviceConsentChanged_ConsentNotAllowed) {
EXPECT_CALL(*mock_app_, policy_app_id()).WillOnce(Return(kPolicyAppId_));

EXPECT_CALL(*mock_policy_manager_, IsPredataPolicy(kPolicyAppId_))
.WillOnce(Return(true));
.WillRepeatedly(Return(true));

EXPECT_CALL(*mock_policy_manager_, ReactOnUserDevConsentForApp(_, _))
.Times(0);
Expand Down Expand Up @@ -1850,7 +1850,7 @@ TEST_F(PolicyHandlerTest, OnDeviceConsentChanged_PredatePolicyNotAllowed) {

// App does not have predate policy
EXPECT_CALL(*mock_policy_manager_, IsPredataPolicy(kPolicyAppId_))
.WillOnce(Return(false));
.WillRepeatedly(Return(false));

EXPECT_CALL(*mock_policy_manager_,
ReactOnUserDevConsentForApp(kPolicyAppId_, is_allowed));
Expand Down

0 comments on commit ef93b27

Please sign in to comment.