chromium/chrome/test/data/webui/password_manager_internals/password_manager_internals_browsertest.cc

// Copyright 2023 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/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_mocha_browser_test.h"
#include "components/autofill/core/browser/logging/log_router.h"
#include "components/password_manager/content/browser/password_manager_log_router_factory.h"
#include "content/public/test/browser_test.h"

class PasswordManagerInternalsBrowserTest : public WebUIMochaBrowserTest {};

IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsBrowserTest, LogText) {}

// Test that a single internals page is empty on load.
IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsBrowserTest, LogEmpty) {}

// Test that a single internals page is flushed on reload.
IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsBrowserTest,
                       LogEmptyAfterReload) {}

// Test that navigation away from the internals page works OK.
IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsBrowserTest, NavigateAway) {}

// Test that the description is correct in a non-Incognito tab.
IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsBrowserTest,
                       NonIncognitoDescription) {}

class PasswordManagerInternalsIncognitoBrowserTest
    : public PasswordManagerInternalsBrowserTest {};

// Test that the description is correct in an Incognito tab.
IN_PROC_BROWSER_TEST_F(PasswordManagerInternalsIncognitoBrowserTest,
                       IncognitoDescription) {}