Bug 1687315 - fix testoriginattributes tests r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D102205
This commit is contained in:
Frederik Braun 2021-01-19 07:54:31 +00:00
Родитель 2b6915613d
Коммит c1fa7a9762
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -74,7 +74,7 @@ TEST(OriginAttributes, FirstPartyDomain_default)
TEST_FPD(u"moz-extension://f5b6ca10-5bd4-4ed6-9baf-820dc5152bc1", u"");
Preferences::SetBool(FPI_PREF, oldFpiPref);
Preferences::SetBool(FPI_PREF, oldSitePref);
Preferences::SetBool(SITE_PREF, oldSitePref);
}
TEST(OriginAttributes, FirstPartyDomain_site)
@ -100,7 +100,7 @@ TEST(OriginAttributes, FirstPartyDomain_site)
TEST_FPD(u"moz-extension://f5b6ca10-5bd4-4ed6-9baf-820dc5152bc1", u"");
Preferences::SetBool(FPI_PREF, oldFpiPref);
Preferences::SetBool(FPI_PREF, oldSitePref);
Preferences::SetBool(SITE_PREF, oldSitePref);
}
TEST(OriginAttributes, NullPrincipal)
@ -122,7 +122,7 @@ TEST(OriginAttributes, NullPrincipal)
EXPECT_TRUE(prin->OriginAttributesRef().mFirstPartyDomain.Equals(expected));
Preferences::SetBool(FPI_PREF, oldFpiPref);
Preferences::SetBool(FPI_PREF, oldSitePref);
Preferences::SetBool(SITE_PREF, oldSitePref);
}
} // namespace mozilla