#include "chrome/browser/ui/passwords/password_manager_navigation_throttle.h"
#include <optional>
#include "base/memory/raw_ptr.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/password_manager/core/browser/password_manager_constants.h"
#include "components/variations/scoped_variations_ids_provider.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
struct NavigationThrottleOptions { … };
}
class PasswordManagerNavigationThrottleTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(PasswordManagerNavigationThrottleTest,
CreatesNavigationThrottle_HelpSite) { … }
TEST_F(PasswordManagerNavigationThrottleTest, CreatesNavigationThrottle_PGC) { … }
TEST_F(PasswordManagerNavigationThrottleTest,
DoesntCreateNavigationThrottleWhenOriginDoesntMatch) { … }
TEST_F(PasswordManagerNavigationThrottleTest,
DoesntCreateNavigationThrottleWhenURLDoesntMatch_HelpSite) { … }
TEST_F(PasswordManagerNavigationThrottleTest,
DoesntCreateNavigationThrottleWhenURLDoesntMatch_PGC) { … }
TEST_F(PasswordManagerNavigationThrottleTest,
DoesntCreateNavigationThrottleWhenNotLinkTransition_HelpSite) { … }
TEST_F(PasswordManagerNavigationThrottleTest,
DoesntCreateNavigationThrottleWhenNotLinkTransition_PGC) { … }