blob: 46e29bb10f214d5a66f4f3c216fed28df11d976d [file] [log] [blame]
// 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 "chrome/browser/privacy_sandbox/mock_privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/mock_queue_manager.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/browser_context.h"
MockPrivacySandboxService::MockPrivacySandboxService() {
mock_queue_manager_ =
std::make_unique<privacy_sandbox::MockPrivacySandboxQueueManager>();
ON_CALL(*this, GetPrivacySandboxNoticeQueueManager())
.WillByDefault(::testing::ReturnRef(*mock_queue_manager_.get()));
}
MockPrivacySandboxService::~MockPrivacySandboxService() = default;
std::unique_ptr<KeyedService> BuildMockPrivacySandboxService(
content::BrowserContext* context) {
return std::make_unique<::testing::NiceMock<MockPrivacySandboxService>>();
}