Fix policy engine unittest issues from clang-tidy
Merged from https://widevine-internal-review.googlesource.com/177661 Bug: 290112507 Change-Id: Iddf6889640a335d2f6bb7af78790f4a36baaab03
This commit is contained in:
@@ -131,7 +131,6 @@ using video_widevine::STREAMING;
|
|||||||
// gmock methods
|
// gmock methods
|
||||||
using ::testing::_;
|
using ::testing::_;
|
||||||
using ::testing::InSequence;
|
using ::testing::InSequence;
|
||||||
using ::testing::Invoke;
|
|
||||||
using ::testing::MockFunction;
|
using ::testing::MockFunction;
|
||||||
using ::testing::Pair;
|
using ::testing::Pair;
|
||||||
using ::testing::Return;
|
using ::testing::Return;
|
||||||
@@ -250,7 +249,7 @@ class PolicyEngineTestV16 : public PolicyEngineTest {
|
|||||||
protected:
|
protected:
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
EXPECT_CALL(*crypto_session_, GetApiVersion(_))
|
EXPECT_CALL(*crypto_session_, GetApiVersion(_))
|
||||||
.WillOnce(DoAll(SetArgPointee<0>(kOemCryptoV16), Return(true)));
|
.WillRepeatedly(DoAll(SetArgPointee<0>(kOemCryptoV16), Return(true)));
|
||||||
PolicyEngineTest::SetUp();
|
PolicyEngineTest::SetUp();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1045,7 +1044,7 @@ TEST_F(PolicyEngineKeyAllowedUsageTest, AllowedUsageGeneric) {
|
|||||||
class PolicyEngineQueryTest : public PolicyEngineTestV16 {
|
class PolicyEngineQueryTest : public PolicyEngineTestV16 {
|
||||||
protected:
|
protected:
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
PolicyEngineTest::SetUp();
|
PolicyEngineTestV16::SetUp();
|
||||||
policy_engine_.reset(
|
policy_engine_.reset(
|
||||||
new PolicyEngine(kSessionId, nullptr, crypto_session_.get()));
|
new PolicyEngine(kSessionId, nullptr, crypto_session_.get()));
|
||||||
InjectMockClock();
|
InjectMockClock();
|
||||||
|
|||||||
Reference in New Issue
Block a user