Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1597)

Unified Diff: chrome/browser/profiles/profile_attributes_storage_unittest.cc

Issue 2928823003: Make it possible to build without enable_supervised_users.
Patch Set: Does it still compile with the feature enabled? Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_attributes_storage_unittest.cc
diff --git a/chrome/browser/profiles/profile_attributes_storage_unittest.cc b/chrome/browser/profiles/profile_attributes_storage_unittest.cc
index 55c58daea9ab2e4ee2f66fc05248ffb2f5911336..42f293f190f667ab241381eddd04a9ebd102ce44 100644
--- a/chrome/browser/profiles/profile_attributes_storage_unittest.cc
+++ b/chrome/browser/profiles/profile_attributes_storage_unittest.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/signin_util.h"
#include "chrome/browser/supervised_user/supervised_user_constants.h"
+#include "chrome/common/features.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -287,6 +288,7 @@ TEST_F(ProfileAttributesStorageTest, AuthInfo) {
EXPECT_EQ("foo", entry->GetGAIAId());
}
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
TEST_F(ProfileAttributesStorageTest, SupervisedUsersAccessors) {
AddTestingProfile();
@@ -309,6 +311,7 @@ TEST_F(ProfileAttributesStorageTest, SupervisedUsersAccessors) {
ASSERT_TRUE(entry->IsChild());
ASSERT_FALSE(entry->IsLegacySupervised());
}
+#endif
TEST_F(ProfileAttributesStorageTest, ReSortTriggered) {
storage()->AddProfile(GetProfilePath("alpha_path"),

Powered by Google App Engine
This is Rietveld 408576698