| 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..30a95dae089b5943b3cdaf6a7884cd00f4de7762 100644
|
| --- a/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| +++ b/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
|
| @@ -10,7 +10,6 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| -#include "components/gcm_driver/crypto/gcm_encryption_provider.h"
|
| #include "google_apis/gcm/engine/mcs_client.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -99,9 +98,6 @@
|
| static const char kIncomingSendErrorEvent[] = "Received 'send error' msg";
|
| static const char kIncomingSendErrorDetails[] = "";
|
|
|
| -static const GCMEncryptionProvider::DecryptionFailure kDecryptionFailureReason =
|
| - GCMEncryptionProvider::DECRYPTION_FAILURE_INVALID_PAYLOAD;
|
| -
|
| } // namespace
|
|
|
| class GCMStatsRecorderImplTest : public testing::Test {
|
| @@ -129,11 +125,6 @@
|
| void VerifyRecordedSendingCount(int expected_count) {
|
| EXPECT_EQ(expected_count,
|
| static_cast<int>(recorder_.sending_activities().size()));
|
| - }
|
| - void VerifyRecordedDecryptionFailureCount(int expected_count) {
|
| - EXPECT_EQ(
|
| - expected_count,
|
| - static_cast<int>(recorder_.decryption_failure_activities().size()));
|
| }
|
| void VerifyAllActivityQueueEmpty(const std::string& remark) {
|
| EXPECT_TRUE(recorder_.checkin_activities().empty()) << remark;
|
| @@ -141,7 +132,6 @@
|
| EXPECT_TRUE(recorder_.registration_activities().empty()) << remark;
|
| EXPECT_TRUE(recorder_.receiving_activities().empty()) << remark;
|
| EXPECT_TRUE(recorder_.sending_activities().empty()) << remark;
|
| - EXPECT_TRUE(recorder_.decryption_failure_activities().empty()) << remark;
|
| }
|
|
|
| void VerifyCheckinInitiated(const std::string& remark) {
|
| @@ -295,16 +285,6 @@
|
| kIncomingSendErrorEvent,
|
| kIncomingSendErrorDetails,
|
| remark);
|
| - }
|
| -
|
| - void VerifyRecordedDecryptionFailure(const std::string& remark) {
|
| - const auto& queue = recorder_.decryption_failure_activities();
|
| -
|
| - EXPECT_EQ(kAppId, queue.front().app_id) << remark;
|
| - EXPECT_EQ(
|
| - GCMEncryptionProvider::ToDecryptionFailureDetailsString(
|
| - kDecryptionFailureReason),
|
| - queue.front().details) << remark;
|
| }
|
|
|
| protected:
|
| @@ -546,11 +526,4 @@
|
| VerifyDataSentToWire("4th call");
|
| }
|
|
|
| -TEST_F(GCMStatsRecorderImplTest, RecordDecryptionFailureTest) {
|
| - recorder_.RecordDecryptionFailure(kAppId, kDecryptionFailureReason);
|
| - VerifyRecordedDecryptionFailureCount(1);
|
| -
|
| - VerifyRecordedDecryptionFailure("1st call");
|
| -}
|
| -
|
| } // namespace gcm
|
|
|