| Index: components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| diff --git a/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc b/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| index 5c6fe253fc3942f32d6ff1af06fc0af5318b93c2..eae8909a3534bc66de1a53075e0a2c4e20ac0638 100644
|
| --- a/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| +++ b/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| @@ -99,8 +99,8 @@ static const char kNotifySendStatusDetails[] = "Msg size: 99 bytes, TTL: 7";
|
| static const char kIncomingSendErrorEvent[] = "Received 'send error' msg";
|
| static const char kIncomingSendErrorDetails[] = "";
|
|
|
| -static const GCMEncryptionProvider::DecryptionFailure kDecryptionFailureReason =
|
| - GCMEncryptionProvider::DECRYPTION_FAILURE_INVALID_PAYLOAD;
|
| +static const GCMEncryptionProvider::DecryptionResult kDecryptionResultFailure =
|
| + GCMEncryptionProvider::DECRYPTION_RESULT_INVALID_PAYLOAD;
|
|
|
| } // namespace
|
|
|
| @@ -302,8 +302,8 @@ class GCMStatsRecorderImplTest : public testing::Test {
|
|
|
| EXPECT_EQ(kAppId, queue.front().app_id) << remark;
|
| EXPECT_EQ(
|
| - GCMEncryptionProvider::ToDecryptionFailureDetailsString(
|
| - kDecryptionFailureReason),
|
| + GCMEncryptionProvider::ToDecryptionResultDetailsString(
|
| + kDecryptionResultFailure),
|
| queue.front().details) << remark;
|
| }
|
|
|
| @@ -547,7 +547,7 @@ TEST_F(GCMStatsRecorderImplTest, RecordSendingTest) {
|
| }
|
|
|
| TEST_F(GCMStatsRecorderImplTest, RecordDecryptionFailureTest) {
|
| - recorder_.RecordDecryptionFailure(kAppId, kDecryptionFailureReason);
|
| + recorder_.RecordDecryptionFailure(kAppId, kDecryptionResultFailure);
|
| VerifyRecordedDecryptionFailureCount(1);
|
|
|
| VerifyRecordedDecryptionFailure("1st call");
|
|
|