chromium/content/browser/private_aggregation/private_aggregation_internals_handler_impl_unittest.cc

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

#include "content/browser/private_aggregation/private_aggregation_internals_handler_impl.h"

#include <stddef.h>

#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>

#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/gmock_move_support.h"
#include "base/test/values_test_util.h"
#include "base/time/time.h"
#include "base/values.h"
#include "content/browser/aggregation_service/aggregatable_report.h"
#include "content/browser/aggregation_service/aggregation_service_observer.h"
#include "content/browser/aggregation_service/aggregation_service_storage.h"
#include "content/browser/aggregation_service/aggregation_service_test_utils.h"
#include "content/browser/private_aggregation/private_aggregation_internals.mojom.h"
#include "content/browser/private_aggregation/private_aggregation_test_utils.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/test_web_ui.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {

namespace {

class MockObserver : public private_aggregation_internals::mojom::Observer {};

void VerifyWebUIAggregatableReport(
    const private_aggregation_internals::mojom::WebUIAggregatableReport&
        web_report,
    const AggregatableReportRequest& request,
    std::optional<AggregationServiceStorage::RequestId> id,
    const std::optional<AggregatableReport>& report,
    base::Time report_time,
    private_aggregation_internals::mojom::ReportStatus status) {}

}  // namespace

class PrivateAggregationInternalsHandlerImplTest
    : public RenderViewHostTestHarness {};

TEST_F(PrivateAggregationInternalsHandlerImplTest, GetReports) {}

TEST_F(PrivateAggregationInternalsHandlerImplTest, SendReports) {}

TEST_F(PrivateAggregationInternalsHandlerImplTest, ClearStorage) {}

TEST_F(PrivateAggregationInternalsHandlerImplTest, NotifyReportsChanged) {}

TEST_F(PrivateAggregationInternalsHandlerImplTest, NotifyReportHandled) {}

TEST_F(PrivateAggregationInternalsHandlerImplTest, NotifyReportHandled_NoId) {}

}  // namespace content