#include "components/subresource_filter/content/browser/subresource_filter_observer_test_utils.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/containers/map_util.h"
#include "base/types/optional_util.h"
#include "components/subresource_filter/core/mojom/subresource_filter.mojom.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace subresource_filter {
TestSubresourceFilterObserver::TestSubresourceFilterObserver(
content::WebContents* web_contents) { … }
TestSubresourceFilterObserver::~TestSubresourceFilterObserver() { … }
void TestSubresourceFilterObserver::OnSubresourceFilterGoingAway() { … }
void TestSubresourceFilterObserver::OnPageActivationComputed(
content::NavigationHandle* navigation_handle,
const mojom::ActivationState& activation_state) { … }
void TestSubresourceFilterObserver::OnChildFrameNavigationEvaluated(
content::NavigationHandle* navigation_handle,
LoadPolicy load_policy) { … }
void TestSubresourceFilterObserver::OnIsAdFrameChanged(
content::RenderFrameHost* render_frame_host,
bool is_ad_frame) { … }
void TestSubresourceFilterObserver::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
std::optional<mojom::ActivationLevel>
TestSubresourceFilterObserver::GetPageActivation(const GURL& url) const { … }
bool TestSubresourceFilterObserver::GetIsAdFrame(int frame_tree_node_id) const { … }
std::optional<LoadPolicy>
TestSubresourceFilterObserver::GetChildFrameLoadPolicy(const GURL& url) const { … }
std::optional<mojom::ActivationLevel>
TestSubresourceFilterObserver::GetPageActivationForLastCommittedLoad() const { … }
std::optional<TestSubresourceFilterObserver::SafeBrowsingCheck>
TestSubresourceFilterObserver::GetSafeBrowsingResult(const GURL& url) const { … }
}