#include "chrome/browser/ui/webui/top_chrome/per_profile_webui_tracker.h"
#include "base/scoped_observation.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace {
constexpr char kWebUIUrl1[] = …;
constexpr char kWebUIUrl2[] = …;
}
class PerProfileWebUITrackerTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(PerProfileWebUITrackerTest, Basic) { … }
TEST_F(PerProfileWebUITrackerTest, TwoWebUIsOfSameURL) { … }
TEST_F(PerProfileWebUITrackerTest, DifferentProfiles) { … }
TEST_F(PerProfileWebUITrackerTest, Navigation) { … }
class MockTrackerObserver : public PerProfileWebUITracker::Observer { … };
TEST_F(PerProfileWebUITrackerTest, Observer) { … }