chromium/google_apis/calendar/calendar_api_requests_unittest.cc

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

#include "google_apis/calendar/calendar_api_requests.h"

#include <string>
#include <vector>

#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "google_apis/calendar/calendar_api_response_types.h"
#include "google_apis/common/dummy_auth_service.h"
#include "google_apis/common/request_sender.h"
#include "google_apis/common/test_util.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "net/test/embedded_test_server/request_handler_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/test/test_shared_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace google_apis {

namespace calendar {

namespace {
const char kTestCalendarColorId[] =;
const char kTestPrimaryCalendarColorId[] =;
const char kTestPrimaryCalendarSummary[] =;
const char kTestUserAgent[] =;
}

class CalendarApiRequestsTest : public testing::Test {};

// Checks that CalendarApiCalendarListRequest can generate the correct url
// and get a calendar list response.
TEST_F(CalendarApiRequestsTest, GetCalendarListRequest) {}

// Tests that CalendarApiEventsRequest can generate the correct url and get the
// correct event list response.
TEST_F(CalendarApiRequestsTest, GetEventListRequest) {}

// Tests that CalendarApiEventsRequest can generate the correct url and get the
// correct event list response with default optional parameters.
TEST_F(CalendarApiRequestsTest,
       GetEventListRequestWithDefaultOptionalParameters) {}

// Tests that CalendarApiEventsRequest can generate the correct url and get the
// correct event list response with extra parameters and attachments.
TEST_F(CalendarApiRequestsTest,
       GetEventListRequestWithExtraParametersAndAttachments) {}

// Tests that CalendarApiEventsRequest can generate the correct url when
// attachments are requested.
TEST_F(CalendarApiRequestsTest, GetEventListRequestWithAttachments) {}

}  // namespace calendar
}  // namespace google_apis