chromium/components/user_notes/browser/user_note_instance_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 "components/user_notes/browser/user_note_instance.h"

#include <memory>
#include <vector>

#include "base/memory/safe_ref.h"
#include "base/test/bind.h"
#include "base/unguessable_token.h"
#include "components/user_notes/browser/user_note_base_test.h"
#include "components/user_notes/model/user_note.h"
#include "components/user_notes/model/user_note_model_test_utils.h"
#include "content/public/browser/page.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"

_;
Invoke;
Mock;

namespace user_notes {

namespace {

// Partially mock the object under test so calls to
// `InitializeHighlightInternal` can be intercepted to prevent side effects.
class MockUserNoteInstance : public UserNoteInstance {};

}  // namespace

class UserNoteInstanceTest : public UserNoteBaseTest {};

// Tests that async highlight initialization is skipped for page-level notes.
TEST_F(UserNoteInstanceTest, InitializeHighlightSkipForPageLevelNote) {}

// Tests that async highlight initialization works as expected for text notes.
TEST_F(UserNoteInstanceTest, InitializeHighlightTextNote) {}

}  // namespace user_notes