#include "build/build_config.h"
#include "chrome/browser/extensions/scoped_test_mv2_enabler.h"
#include "chrome/browser/sync/test/integration/extensions_helper.h"
#include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "content/public/test/browser_test.h"
namespace {
AllProfilesHaveSameExtensions;
DisableExtension;
EnableExtension;
GetInstalledExtensions;
HasSameExtensions;
IncognitoDisableExtension;
IncognitoEnableExtension;
InstallExtension;
UninstallExtension;
class TwoClientExtensionsSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(StartWithNoExtensions)) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_StartWithSameExtensions …
#else
#define MAYBE_StartWithSameExtensions …
#endif
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(MAYBE_StartWithSameExtensions)) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_StartWithDifferentExtensions …
#else
#define MAYBE_StartWithDifferentExtensions …
#endif
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(MAYBE_StartWithDifferentExtensions)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(InstallDifferentExtensions)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest, E2E_ENABLED(Add)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest, E2E_ENABLED(Uninstall)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(UpdateEnableDisableExtension)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(UpdateIncognitoEnableDisable)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest,
E2E_ENABLED(UninstallPreinstalledExtensions)) { … }
}