#include "chrome/browser/browser_process.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_list_observer.h"
#include "chrome/test/supervised_user/supervision_mixin.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class AllIncognitoBrowsersClosedWaiter : public BrowserListObserver { … };
class SupervisedUserIncognitoBrowserTest
: public MixinBasedInProcessBrowserTest,
public ::testing::WithParamInterface<
supervised_user::SupervisionMixin::SignInMode> { … };
#if !BUILDFLAG(IS_CHROMEOS_ASH)
IN_PROC_BROWSER_TEST_F(SupervisedUserIncognitoBrowserTest,
UnsupervisedSignInDoesNotCloseIncognito) { … }
IN_PROC_BROWSER_TEST_F(SupervisedUserIncognitoBrowserTest,
SupervisedSignInClosesIncognito) { … }
#endif
}