Skip to content

Commit

Permalink
Add API tests for hashed email and phone number (#12469)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunghung authored Mar 5, 2024
1 parent 2e7ff6a commit 42fea7d
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 42fea7d

Please sign in to comment.