Skip to content

Commit

Permalink
change more test names
Browse files Browse the repository at this point in the history
  • Loading branch information
caroline-ttd committed Apr 29, 2024
1 parent 9c8ae0c commit f10d4dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/UID2.Client.Test/EncryptionTestsV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ public void DomainOrAppNameCaseSensitiveAndCheckFailedTest(string domainOrAppNam
[InlineData("com.123.Game.App.ios")]
// Domain not associated with any site.
[InlineData("foo.com")]
public void TokenIsCstgDerivedDomainNameFailTest(string domainName)
public void TokenIsCstgDerivedDomainOrAppNameFailTest(string domainOrAppName)
{
_client.RefreshJson(KeySharingResponse(new [] { MASTER_KEY, SITE_KEY }));
var privacyBits = PrivacyBitsBuilder.Builder().WithClientSideGenerated(true).Build();
var advertisingToken = _tokenBuilder.WithPrivacyBits(privacyBits).Build();
var res = _client.Decrypt(advertisingToken, domainName);
var res = _client.Decrypt(advertisingToken, domainOrAppName);
Assert.True(res.IsClientSideGenerated);
Assert.False(res.Success);
Assert.Equal(DecryptionStatus.DomainOrAppNameCheckFailed, res.Status);
Expand Down
4 changes: 2 additions & 2 deletions test/UID2.Client.Test/EncryptionTestsV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public void DomainOrAppNameCaseSensitiveAndCheckFailedTest(string domainOrAppNam
[InlineData("com.123.Game.App.ios")]
// Domain not associated with any site.
[InlineData("foo.com")]
public void TokenIsCstgDerivedDomainNameFailTest(string domainName)
public void TokenIsCstgDerivedDomainOrAppNameFailTest(string domainOrAppName)
{
_client.RefreshJson(KeySharingResponse(new [] { MASTER_KEY, SITE_KEY }));
var privacyBits = PrivacyBitsBuilder.Builder().WithClientSideGenerated(true).Build();
var advertisingToken = _tokenBuilder.WithPrivacyBits(privacyBits).Build();
var res = _client.Decrypt(advertisingToken, domainName);
var res = _client.Decrypt(advertisingToken, domainOrAppName);
Assert.True(res.IsClientSideGenerated);
Assert.False(res.Success);
Assert.Equal(DecryptionStatus.DomainOrAppNameCheckFailed, res.Status);
Expand Down
4 changes: 2 additions & 2 deletions test/UID2.Client.Test/EncryptionTestsV4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ public void DomainOrAppNameCaseSensitiveAndCheckFailedTest(string domainOrAppNam
[InlineData("com.123.Game.App.ios")]
// Domain not associated with any site.
[InlineData("foo.com")]
public void TokenIsCstgDerivedDomainNameFailTest(string domainName)
public void TokenIsCstgDerivedDomainOrAppNameFailTest(string domainOrAppName)
{
_client.RefreshJson(KeySharingResponse(new [] { MASTER_KEY, SITE_KEY }));
var privacyBits = PrivacyBitsBuilder.Builder().WithClientSideGenerated(true).Build();
var advertisingToken = _tokenBuilder.WithPrivacyBits(privacyBits).Build();
var res = _client.Decrypt(advertisingToken, domainName);
var res = _client.Decrypt(advertisingToken, domainOrAppName);
Assert.True(res.IsClientSideGenerated);
Assert.False(res.Success);
Assert.Equal(DecryptionStatus.DomainOrAppNameCheckFailed, res.Status);
Expand Down

0 comments on commit f10d4dd

Please sign in to comment.