diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/components/signin/core/browser/profile_management_switches_unittest.cc | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/signin/core/browser/profile_management_switches_unittest.cc')
-rw-r--r-- | chromium/components/signin/core/browser/profile_management_switches_unittest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/components/signin/core/browser/profile_management_switches_unittest.cc b/chromium/components/signin/core/browser/profile_management_switches_unittest.cc index c0f40463050..5efa1cc3ef0 100644 --- a/chromium/components/signin/core/browser/profile_management_switches_unittest.cc +++ b/chromium/components/signin/core/browser/profile_management_switches_unittest.cc @@ -9,8 +9,10 @@ #include "base/bind.h" #include "base/macros.h" #include "base/message_loop/message_loop.h" +#include "build/buildflag.h" #include "components/prefs/pref_member.h" #include "components/signin/core/browser/scoped_account_consistency.h" +#include "components/signin/core/browser/scoped_unified_consent.h" #include "components/signin/core/browser/signin_buildflags.h" #include "components/sync_preferences/testing_pref_service_syncable.h" #include "testing/gtest/include/gtest/gtest.h" @@ -132,4 +134,18 @@ TEST(ProfileManagementSwitchesTest, GaiaSiteIsolation) { #endif // BUILDFLAG(ENABLE_MIRROR) +TEST(ProfileManagementSwitchesTest, UnifiedConsent) { + // Unified consent is disabled by default. + EXPECT_EQ(UnifiedConsentFeatureState::kDisabled, + GetUnifiedConsentFeatureState()); + + for (UnifiedConsentFeatureState state : + {UnifiedConsentFeatureState::kDisabled, + UnifiedConsentFeatureState::kEnabledNoBump, + UnifiedConsentFeatureState::kEnabledWithBump}) { + ScopedUnifiedConsent scoped_state(state); + EXPECT_EQ(state, GetUnifiedConsentFeatureState()); + } +} + } // namespace signin |