Skip to content

Commit

Permalink
Add API tests for hashed email and phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunghung committed Mar 5, 2024
1 parent 2e7ff6a commit 3da5920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FirebaseAnalyticsSwift/Tests/ObjCAPI/ObjCAPITests.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ - (void)consentTests:(NSURL *)url {
- (void)onDeviceConversionTests:(NSURL *)url {
[FIRAnalytics initiateOnDeviceConversionMeasurementWithEmailAddress:@"[email protected]"];
[FIRAnalytics initiateOnDeviceConversionMeasurementWithPhoneNumber:@"+15555555555"];
[FIRAnalytics initiateOnDeviceConversionMeasurementWithHashedEmailAddress:[NSData data]];
[FIRAnalytics initiateOnDeviceConversionMeasurementWithHashedPhoneNumber:[NSData data]];
}

- (NSArray<NSString *> *)eventNames {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ final class AnalyticsAPITests {

Analytics.initiateOnDeviceConversionMeasurement(emailAddress: "[email protected]")
Analytics.initiateOnDeviceConversionMeasurement(phoneNumber: "+15555555555")
Analytics.initiateOnDeviceConversionMeasurement(hashedEmailAddress: Data())
Analytics.initiateOnDeviceConversionMeasurement(hashedPhoneNumber: Data())

// MARK: - EventNames

Expand Down

0 comments on commit 3da5920

Please sign in to comment.