chromium/chrome/browser/new_tab_page/modules/file_suggestion/drive_service_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 "chrome/browser/new_tab_page/modules/file_suggestion/drive_service.h"

#include "base/barrier_closure.h"
#include "base/hash/hash.h"
#include "base/json/json_reader.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/test/base/testing_profile.h"
#include "components/prefs/testing_pref_service.h"
#include "components/search/ntp_features.h"
#include "components/segmentation_platform/public/result.h"
#include "components/segmentation_platform/public/testing/mock_segmentation_platform_service.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "content/public/test/browser_task_environment.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "net/base/load_flags.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"

class DriveServiceTest : public testing::Test {};

TEST_F(DriveServiceTest, PassesDataOnSuccess) {}

TEST_F(DriveServiceTest, PassesDataToMultipleRequestsToDriveService) {}

TEST_F(DriveServiceTest, PassesCachedDataIfRequested) {}

TEST_F(DriveServiceTest, PassesDataIfSegmentationIsEnabled) {}

TEST_F(DriveServiceTest, AddsClientTagIfRequested) {}

TEST_F(DriveServiceTest, PassesNoDataIfDismissed) {}

TEST_F(DriveServiceTest, PassesNoDataOnAuthError) {}

TEST_F(DriveServiceTest, PassesNoDataOnNetError) {}

TEST_F(DriveServiceTest, PassesNoDataOnEmptyResponse) {}

TEST_F(DriveServiceTest, PassesNoDataOnMissingItemKey) {}

TEST_F(DriveServiceTest, DismissModule) {}

TEST_F(DriveServiceTest, RestoreModule) {}

class DriveServiceFakeDataTest : public DriveServiceTest {};

TEST_F(DriveServiceFakeDataTest, ReturnsFakeData) {}