| Index: chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc
|
| diff --git a/chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc b/chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc
|
| index 6215b5282965af77a63915ca83493b0e3f0e77bb..7a39687a71ed7ccf78c9a179fdcda989eed7c9f4 100644
|
| --- a/chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc
|
| +++ b/chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc
|
| @@ -136,3 +136,28 @@ IN_PROC_BROWSER_TEST_F(SupervisedUserNavigationThrottleTest,
|
| ASSERT_TRUE(content::ExecuteScriptAndExtractBool(tab, "loaded2()", &loaded2));
|
| EXPECT_TRUE(loaded2);
|
| }
|
| +
|
| +class SupervisedUserNavigationThrottleNotSupervisedTest
|
| + : public SupervisedUserNavigationThrottleTest {
|
| + protected:
|
| + SupervisedUserNavigationThrottleNotSupervisedTest() {}
|
| + ~SupervisedUserNavigationThrottleNotSupervisedTest() override {}
|
| +
|
| + private:
|
| + // Overridden to do nothing, so that the supervised user ID will be empty.
|
| + void SetUpCommandLine(base::CommandLine* command_line) override {}
|
| +};
|
| +
|
| +IN_PROC_BROWSER_TEST_F(SupervisedUserNavigationThrottleNotSupervisedTest,
|
| + DontBlock) {
|
| + BlockHost(kExampleHost);
|
| +
|
| + WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
|
| +
|
| + GURL blocked_url = embedded_test_server()->GetURL(
|
| + kExampleHost, "/supervised_user/simple.html");
|
| + ui_test_utils::NavigateToURL(browser(), blocked_url);
|
| + // Even though the URL is marked as blocked, the load should go through, since
|
| + // the user isn't supervised.
|
| + EXPECT_FALSE(tab->ShowingInterstitialPage());
|
| +}
|
|
|