chromium/components/gcm_driver/gcm_stats_recorder_impl_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/gcm_driver/gcm_stats_recorder_impl.h"

#include <stdint.h>

#include <string>

#include "base/containers/circular_deque.h"
#include "components/gcm_driver/crypto/gcm_decryption_result.h"
#include "components/gcm_driver/crypto/gcm_encryption_provider.h"
#include "google_apis/gcm/engine/mcs_client.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace gcm {

namespace {

static uint64_t kAndroidId =;
static const char kCheckinStatus[] =;
static const char kHost[] =;
static const char kAppId[] =;
static const char kFrom[] =;
static const char kSenderIds[] =;
static const char kReceiverId[] =;
static const char kMessageId[] =;
static const int kQueuedSec =;
static const gcm::MCSClient::MessageSendStatus kMessageSendStatus =;
static const int kByteSize =;
static const int kTTL =;
static const int kRetries =;
static const int64_t kDelay =;
static const ConnectionFactory::ConnectionResetReason kReason =;
static const int kNetworkError =;

static const RegistrationRequest::Status kRegistrationStatus =;
static const UnregistrationRequest::Status kUnregistrationStatus =;

static const char kCheckinInitiatedEvent[] =;
static const char kCheckinInitiatedDetails[] =;
static const char kCheckinDelayedDueToBackoffEvent[] =;
static const char kCheckinDelayedDueToBackoffDetails[] =;
static const char kCheckinSuccessEvent[] =;
static const char kCheckinSuccessDetails[] =;
static const char kCheckinFailureEvent[] =;
static const char kCheckinFailureDetails[] =;

static const char kConnectionInitiatedEvent[] =;
static const char kConnectionInitiatedDetails[] =;
static const char kConnectionDelayedDueToBackoffEvent[] =;
static const char kConnectionDelayedDueToBackoffDetails[] =;
static const char kConnectionSuccessEvent[] =;
static const char kConnectionSuccessDetails[] =;
static const char kConnectionFailureEvent[] =;
static const char kConnectionFailureDetails[] =;
static const char kConnectionResetSignaledEvent[] =;
static const char kConnectionResetSignaledDetails[] =;

static const char kRegistrationSentEvent[] =;
static const char kRegistrationSentDetails[] =;
static const char kRegistrationResponseEvent[] =;
static const char kRegistrationResponseDetails[] =;
static const char kRegistrationRetryDelayedEvent[] =;
static const char kRegistrationRetryDelayedDetails[] =;
static const char kUnregistrationSentEvent[] =;
static const char kUnregistrationSentDetails[] =;
static const char kUnregistrationResponseEvent[] =;
static const char kUnregistrationResponseDetails[] =;
static const char kUnregistrationRetryDelayedEvent[] =;
static const char kUnregistrationRetryDelayedDetails[] =;

static const char kDataReceivedEvent[] =;
static const char kDataReceivedDetails[] =;
static const char kDataDeletedMessageEvent[] =;
static const char kDataDeletedMessageDetails[] =;

static const char kDataSentToWireEvent[] =;
static const char kSentToWireDetails[] =;
static const char kNotifySendStatusEvent[] =;
static const char kNotifySendStatusDetails[] =;
static const char kIncomingSendErrorEvent[] =;
static const char kIncomingSendErrorDetails[] =;

static const GCMDecryptionResult kDecryptionResultFailure =;

}  // namespace

class GCMStatsRecorderImplTest : public testing::Test {};

GCMStatsRecorderImplTest::GCMStatsRecorderImplTest(){}

GCMStatsRecorderImplTest::~GCMStatsRecorderImplTest() {}

void GCMStatsRecorderImplTest::SetUp(){}

TEST_F(GCMStatsRecorderImplTest, StartStopRecordingTest) {}

TEST_F(GCMStatsRecorderImplTest, ClearLogTest) {}

TEST_F(GCMStatsRecorderImplTest, CheckinTest) {}

TEST_F(GCMStatsRecorderImplTest, ConnectionTest) {}

TEST_F(GCMStatsRecorderImplTest, RegistrationTest) {}

TEST_F(GCMStatsRecorderImplTest, RecordReceivingTest) {}

TEST_F(GCMStatsRecorderImplTest, RecordSendingTest) {}

TEST_F(GCMStatsRecorderImplTest, RecordDecryptionFailureTest) {}

}  // namespace gcm