@@ -220,6 +220,26 @@ TEST_F(FirebaseAnalyticsTest, TestSetProperties) {
220
220
221
221
firebase::analytics::InitiateOnDeviceConversionMeasurementWithPhoneNumber (
222
222
" +15551234567" );
223
+
224
+ std::vector<unsigned char > hashed_email = {
225
+ // SHA256-encoded "[email protected] "
226
+ 0x31 , 0xc5 , 0x54 , 0x3c , 0x17 , 0x34 , 0xd2 , 0x5c , 0x72 , 0x06 , 0xf5 ,
227
+ 0xfd , 0x59 , 0x15 , 0x25 , 0xd0 , 0x29 , 0x5b , 0xec , 0x6f , 0xe8 , 0x4f ,
228
+ 0xf8 , 0x2f , 0x94 , 0x6a , 0x34 , 0xfe , 0x97 , 0x0a , 0x1e , 0x66 ,
229
+ };
230
+
231
+ firebase::analytics::
232
+ InitiateOnDeviceConversionMeasurementWithHashedEmailAddress (hashed_email);
233
+
234
+ std::vector<unsigned char > hashed_phone = {
235
+ // SHA256-encoded "+12345556789"
236
+ 0x12 , 0x8c , 0x64 , 0xfe , 0x24 , 0x0f , 0x08 , 0x75 , 0xf5 , 0x98 , 0xc3 ,
237
+ 0x48 , 0x0e , 0xb0 , 0x38 , 0xd2 , 0xe6 , 0xb0 , 0x05 , 0xd1 , 0xa0 , 0x57 ,
238
+ 0xb6 , 0x21 , 0x4a , 0xc2 , 0x09 , 0xf6 , 0xe5 , 0xc0 , 0x68 , 0x41 ,
239
+ };
240
+
241
+ firebase::analytics::
242
+ InitiateOnDeviceConversionMeasurementWithHashedPhoneNumber (hashed_phone);
223
243
}
224
244
225
245
TEST_F (FirebaseAnalyticsTest, TestLogEvents) {
0 commit comments