#include "chrome/browser/ui/views/enterprise/management_toolbar_button.h"
#include <tuple>
#include <vector>
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/enterprise/browser_management/management_service_factory.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_profile.h"
#include "components/policy/core/common/management/management_service.h"
#include "components/policy/core/common/management/scoped_management_service_override_for_testing.h"
#include "testing/gtest/include/gtest/gtest.h"
class ManagementToolbarButtonUnitTest : public TestWithBrowserView { … };
TEST_F(ManagementToolbarButtonUnitTest, VisibilityWithPefs) { … }
class ManagementToolbarButtonFeatureFlagUnitTest
: public ::testing::WithParamInterface<
std::tuple<bool,
bool,
policy::EnterpriseManagementAuthority,
policy::EnterpriseManagementAuthority>>,
public TestWithBrowserView { … };
TEST_P(ManagementToolbarButtonFeatureFlagUnitTest, Visibility) { … }
INSTANTIATE_TEST_SUITE_P(…);