chromium/components/user_notes/browser/user_note_base_test.h

// 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.

#ifndef COMPONENTS_USER_NOTES_BROWSER_USER_NOTE_BASE_TEST_H_
#define COMPONENTS_USER_NOTES_BROWSER_USER_NOTE_BASE_TEST_H_

#include <memory>
#include <vector>

#include "base/test/scoped_feature_list.h"
#include "base/unguessable_token.h"
#include "components/user_notes/browser/user_note_manager.h"
#include "components/user_notes/browser/user_note_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/mojom/annotation/annotation.mojom.h"

namespace user_notes {

// Mock implementation of the renderer's AnnotationAgentContainer interface.
// Tests can use this to simulate and make checks on the renderer end that a
// UserNoteManager interacts with.
class MockAnnotationAgentContainer
    : public blink::mojom::AnnotationAgentContainer {};

// Similar to above but for the agent interface.
class MockAnnotationAgent : public blink::mojom::AnnotationAgent {};

// A base test harness for User Notes unit tests. The harness sets up a note
// service and exposes methods to create new note models, as well as methods to
// create and manipulate note managers attached to mock pages.
class UserNoteBaseTest : public content::RenderViewHostTestHarness {};

}  // namespace user_notes

#endif  // COMPONENTS_USER_NOTES_BROWSER_USER_NOTE_BASE_TEST_H_