#include "components/ukm/content/source_url_recorder.h"
#include "base/test/scoped_feature_list.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "services/metrics/public/cpp/ukm_source.h"
#include "services/metrics/public/cpp/ukm_source_id.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/ukm/source.pb.h"
#include "url/gurl.h"
NavigationSimulator;
class SourceUrlRecorderWebContentsObserverTest
: public content::RenderViewHostTestHarness { … };
TEST_F(SourceUrlRecorderWebContentsObserverTest, Basic) { … }
TEST_F(SourceUrlRecorderWebContentsObserverTest, InitialUrl) { … }
TEST_F(SourceUrlRecorderWebContentsObserverTest, IgnoreUrlInSubframe) { … }
TEST_F(SourceUrlRecorderWebContentsObserverTest, SameDocumentNavigation) { … }
TEST_F(SourceUrlRecorderWebContentsObserverTest, NavigationMetadata) { … }