chromium/chrome/browser/renderer_context_menu/mock_render_view_context_menu.cc

// Copyright 2016 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/renderer_context_menu/mock_render_view_context_menu.h"

#include <vector>

#include "base/ranges/algorithm.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/testing_profile.h"
#include "components/prefs/pref_service.h"
#include "components/renderer_context_menu/render_view_context_menu_observer.h"
#include "content/public/browser/browser_context.h"
#include "services/screen_ai/buildflags/buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"

MockRenderViewContextMenu::MockMenuItem::MockMenuItem()
    :{}

MockRenderViewContextMenu::MockMenuItem::MockMenuItem(
    const MockMenuItem& other) = default;

MockRenderViewContextMenu::MockMenuItem::~MockMenuItem() {}

MockRenderViewContextMenu::MockMenuItem&
MockRenderViewContextMenu::MockMenuItem::operator=(const MockMenuItem& other) =
    default;

MockRenderViewContextMenu::MockRenderViewContextMenu(bool incognito)
    :{}

MockRenderViewContextMenu::~MockRenderViewContextMenu() {}

bool MockRenderViewContextMenu::IsCommandIdChecked(int command_id) const {}

bool MockRenderViewContextMenu::IsCommandIdEnabled(int command_id) const {}

void MockRenderViewContextMenu::ExecuteCommand(int command_id,
                                               int event_flags) {}

void MockRenderViewContextMenu::AddMenuItem(int command_id,
                                            const std::u16string& title) {}

void MockRenderViewContextMenu::AddMenuItemWithIcon(
    int command_id,
    const std::u16string& title,
    const ui::ImageModel& icon) {}

void MockRenderViewContextMenu::AddCheckItem(int command_id,
                                             const std::u16string& title) {}

void MockRenderViewContextMenu::AddSeparator() {}

void MockRenderViewContextMenu::AddSubMenu(int command_id,
                                           const std::u16string& label,
                                           ui::MenuModel* model) {}

void MockRenderViewContextMenu::AddSubMenuWithStringIdAndIcon(
    int command_id,
    int message_id,
    ui::MenuModel* model,
    const ui::ImageModel& icon) {}

void MockRenderViewContextMenu::AppendSubMenuItems(ui::MenuModel* model) {}

void MockRenderViewContextMenu::UpdateMenuItem(int command_id,
                                               bool enabled,
                                               bool hidden,
                                               const std::u16string& title) {}

void MockRenderViewContextMenu::UpdateMenuIcon(int command_id,
                                               const ui::ImageModel& icon) {}

void MockRenderViewContextMenu::RemoveMenuItem(int command_id) {}

void MockRenderViewContextMenu::RemoveAdjacentSeparators() {}

void MockRenderViewContextMenu::RemoveSeparatorBeforeMenuItem(int command_id) {}

void MockRenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {}

void MockRenderViewContextMenu::AddAccessibilityLabelsServiceItem(
    bool is_checked) {}

content::RenderFrameHost* MockRenderViewContextMenu::GetRenderFrameHost()
    const {}

content::BrowserContext* MockRenderViewContextMenu::GetBrowserContext() const {}

content::WebContents* MockRenderViewContextMenu::GetWebContents() const {}

void MockRenderViewContextMenu::SetObserver(
    RenderViewContextMenuObserver* observer) {}

size_t MockRenderViewContextMenu::GetMenuSize() const {}

bool MockRenderViewContextMenu::GetMenuItem(size_t index,
                                            MockMenuItem* item) const {}

PrefService* MockRenderViewContextMenu::GetPrefs() {}