chromium/chrome/browser/ui/webui/side_panel/reading_list/reading_list_page_handler_unittest.cc

// Copyright 2020 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/ui/webui/side_panel/reading_list/reading_list_page_handler.h"

#include <memory>
#include <string>
#include <utility>

#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/reading_list/reading_list_model_factory.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "chrome/test/base/test_browser_window.h"
#include "components/reading_list/core/reading_list_model.h"
#include "components/reading_list/core/reading_list_test_utils.h"
#include "content/public/test/test_web_ui.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/mojom/window_open_disposition.mojom.h"
#include "url/gurl.h"

namespace {

constexpr char kTabUrl1[] =;
constexpr char kTabUrl2[] =;
constexpr char kTabUrl3[] =;
constexpr char kTabUrl4[] =;

constexpr char kTabName1[] =;
constexpr char kTabName2[] =;
constexpr char kTabName3[] =;
constexpr char kTabName4[] =;

bool IsItemEnabledInMenu(ui::MenuModel* menu, int command_id) {}

class MockPage : public reading_list::mojom::Page {};

void ExpectNewReadLaterEntry(const reading_list::mojom::ReadLaterEntry* entry,
                             const GURL& url,
                             const std::string& title) {}

class TestReadingListPageHandler : public ReadingListPageHandler {};

class TestReadingListPageHandlerTest : public BrowserWithTestWindowTest {};

TEST_F(TestReadingListPageHandlerTest, GetReadLaterEntries) {}

TEST_F(TestReadingListPageHandlerTest, OpenURLOnNTP) {}

TEST_F(TestReadingListPageHandlerTest, OpenURLNotOnNTP) {}

TEST_F(TestReadingListPageHandlerTest, UpdateReadStatus) {}

TEST_F(TestReadingListPageHandlerTest, RemoveEntry) {}

TEST_F(TestReadingListPageHandlerTest, UpdateAndRemoveEntry) {}

TEST_F(TestReadingListPageHandlerTest, PostBatchUpdate) {}

TEST_F(TestReadingListPageHandlerTest, NoUpdateWhenHidden) {}

TEST_F(TestReadingListPageHandlerTest, OpenURLAndReadd) {}

TEST_F(TestReadingListPageHandlerTest,
       CurrentPageActionButtonStateChangedOnActiveTabChange) {}

TEST_F(TestReadingListPageHandlerTest, OpenInIncognitoEnabledWhenNotInOTRMode) {}

TEST_F(TestReadingListPageHandlerTest, OpenInIncognitoDisabledWhenInOTRMode) {}

}  // namespace