chromium/google_apis/gcm/engine/checkin_request_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 <stdint.h>

#include <memory>
#include <string>

#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "build/chromeos_buildflags.h"
#include "google_apis/gcm/engine/checkin_request.h"
#include "google_apis/gcm/engine/gcm_request_test_base.h"
#include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h"
#include "google_apis/gcm/protocol/checkin.pb.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"

namespace gcm {

const uint64_t kAndroidId =;
const uint64_t kBlankAndroidId =;
const uint64_t kBlankSecurityToken =;
const char kCheckinURL[] =;
const char kChromeVersion[] =;
const uint64_t kSecurityToken =;
const char kSettingsDigest[] =;
const char kEmailAddress[] =;
const char kTokenValue[] =;

class CheckinRequestTest : public GCMRequestTestBase {};

CheckinRequestTest::CheckinRequestTest()
    :{}

CheckinRequestTest::~CheckinRequestTest() {}

void CheckinRequestTest::FetcherCallback(
    net::HttpStatusCode response_code,
    const checkin_proto::AndroidCheckinResponse& checkin_response) {}

void CheckinRequestTest::CreateRequest(uint64_t android_id,
                                       uint64_t security_token) {}

void CheckinRequestTest::SetResponseScenarioAndComplete(
    ResponseScenario response_scenario) {}

TEST_F(CheckinRequestTest, FetcherDataAndURL) {}

TEST_F(CheckinRequestTest, ResponseBodyEmpty) {}

TEST_F(CheckinRequestTest, ResponseBodyCorrupted) {}

TEST_F(CheckinRequestTest, ResponseHttpStatusUnauthorized) {}

TEST_F(CheckinRequestTest, ResponseHttpStatusBadRequest) {}

TEST_F(CheckinRequestTest, ResponseHttpStatusNotOK) {}

TEST_F(CheckinRequestTest, ResponseMissingAndroidId) {}

TEST_F(CheckinRequestTest, ResponseMissingSecurityToken) {}

TEST_F(CheckinRequestTest, AndroidIdEqualsZeroInResponse) {}

TEST_F(CheckinRequestTest, SecurityTokenEqualsZeroInResponse) {}

TEST_F(CheckinRequestTest, SuccessfulFirstTimeCheckin) {}

TEST_F(CheckinRequestTest, SuccessfulSubsequentCheckin) {}

}  // namespace gcm