1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/ui/hats/mock_hats_service.h"
6 
7 #include <memory>
8 
9 #include "chrome/browser/profiles/profile.h"
10 #include "components/keyed_service/core/keyed_service.h"
11 #include "content/public/browser/browser_context.h"
12 
MockHatsService(Profile * profile)13 MockHatsService::MockHatsService(Profile* profile) : HatsService(profile) {}
14 
15 MockHatsService::~MockHatsService() = default;
16 
BuildMockHatsService(content::BrowserContext * context)17 std::unique_ptr<KeyedService> BuildMockHatsService(
18     content::BrowserContext* context) {
19   return std::make_unique<MockHatsService>(static_cast<Profile*>(context));
20 }
21