/packages/services/Car/cpp/computepipe/tests/fuzz/ |
D | SemanticManagerFuzzer.cpp | 44 char* fakeData = reinterpret_cast<char*>(malloc(sizeof(char) * size)); in LLVMFuzzerTestOneInput() local 45 memcpy(fakeData, data, size * sizeof(char)); in LLVMFuzzerTestOneInput() 58 manager->queuePacket(fakeData, size, 0); in LLVMFuzzerTestOneInput() 61 EXPECT_EQ(std::memcmp(currentPacket->getData(), fakeData, size), 0); in LLVMFuzzerTestOneInput() 65 free(fakeData); in LLVMFuzzerTestOneInput()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/ |
D | SharedDbMigratorV3Test.java | 66 Map<String, List<ContentValues>> fakeData = createFakeDataV2(); in performMigration_v2ToV3_addLastFetchTimeColumn() local 67 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v2ToV3_addLastFetchTimeColumn() 80 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v2ToV3_addLastFetchTimeColumn() 103 Map<String, List<ContentValues>> fakeData = createFakeDataV2(); in performMigration_v3ToV3() local 104 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v3ToV3() 117 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v3ToV3()
|
D | MigrationTestHelper.java | 56 public static void populateDb(SQLiteDatabase db, Map<String, List<ContentValues>> fakeData) { in populateDb() argument 57 fakeData.forEach( in populateDb() 68 SQLiteDatabase newDb, Map<String, List<ContentValues>> fakeData) { in verifyDataInDb() argument 69 verifyDataInDb(newDb, fakeData, ImmutableMap.of(), ImmutableMap.of()); in verifyDataInDb() 80 Map<String, List<ContentValues>> fakeData, in verifyDataInDb() argument 83 fakeData.forEach( in verifyDataInDb()
|
D | SharedDbMigratorV4Test.java | 74 Map<String, List<ContentValues>> fakeData = createFakeDataV3(); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns() local 75 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v3ToV4_addEnrolledSiteEnrolledAPIsColumns() 134 Map<String, List<ContentValues>> fakeData = createFakeDataV4(); in performMigration_v4ToV4() local 135 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v4ToV4() 153 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v4ToV4()
|
D | SharedDbMigratorV2Test.java | 66 Map<String, List<ContentValues>> fakeData = createFakeDataV1(); in performMigration_v1ToV2_createEncryptionKeyTable() local 67 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v1ToV2_createEncryptionKeyTable() 75 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v1ToV2_createEncryptionKeyTable()
|
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/ |
D | SemanticManagerTest.cpp | 73 std::string fakeData("FakeData"); in TEST_F() local 74 uint32_t size = fakeData.size(); in TEST_F() 76 EXPECT_EQ(manager->queuePacket(fakeData.c_str(), kMaxSemanticDataSize + 1, 0), in TEST_F() 81 manager->queuePacket(fakeData.c_str(), size, 0); in TEST_F() 82 EXPECT_STREQ(mCurrentPacket->getData(), fakeData.c_str()); in TEST_F()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | MeasurementDbMigratorV14Test.java | 119 Map<String, List<ContentValues>> fakeData = in performMigration_enrollmentIdNotFound_removesSource() local 121 populateDb(db, fakeData); in performMigration_enrollmentIdNotFound_removesSource() 170 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource() local 172 populateDb(db, fakeData); in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource() 209 Map<String, List<ContentValues>> fakeData = in performMigration_whenEnrollmentIdNotFound_removesTrigger() local 211 populateDb(db, fakeData); in performMigration_whenEnrollmentIdNotFound_removesTrigger() 261 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger() local 263 populateDb(db, fakeData); in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger() 313 Map<String, List<ContentValues>> fakeData = in performMigration_whenEnrollmentIdNotFound_removesEventReport() local 315 populateDb(db, fakeData); in performMigration_whenEnrollmentIdNotFound_removesEventReport() [all …]
|
D | MigrationTestHelper.java | 62 public static void populateDb(SQLiteDatabase db, Map<String, List<ContentValues>> fakeData) { in populateDb() argument 63 fakeData.forEach( in populateDb() 73 SQLiteDatabase newDb, Map<String, List<ContentValues>> fakeData) { in verifyDataInDb() argument 74 verifyDataInDb(newDb, fakeData, ImmutableMap.of(), ImmutableMap.of()); in verifyDataInDb() 86 Map<String, List<ContentValues>> fakeData, in verifyDataInDb() argument 89 fakeData.forEach( in verifyDataInDb()
|
D | MeasurementDbMigratorV20Test.java | 63 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV19(source1Id); in performMigration_v19ToV20WithData_maintainsDataIntegrity() local 64 populateDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity() 65 fakeData = createFakeDataV19(); in performMigration_v19ToV20WithData_maintainsDataIntegrity() 66 populateDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity() 70 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v19ToV20WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV12Test.java | 58 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV11(source1Id); in performMigration_v11ToV12WithData_maintainsDataIntegrity() local 59 populateDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity() 60 fakeData = createFakeDataV11(source1Id); in performMigration_v11ToV12WithData_maintainsDataIntegrity() 61 populateDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity() 67 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v11ToV12WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV10Test.java | 55 Map<String, List<ContentValues>> fakeData = createFakeDataSourceAndTriggerV9(source1Id); in performMigration_v9ToV10WithData_maintainsDataIntegrity() local 56 populateDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity() 57 fakeData = createFakeDataV9(source1Id); in performMigration_v9ToV10WithData_maintainsDataIntegrity() 58 populateDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity() 64 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v9ToV10WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV36Test.java | 51 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV35(); in performMigration_v35ToV36WithData_maintainsDataIntegrity() local 52 populateDb(db, fakeData); in performMigration_v35ToV36WithData_maintainsDataIntegrity() 56 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v35ToV36WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV16Test.java | 58 Map<String, List<ContentValues>> fakeData = createFakeDataSourcesV15(source1Id); in performMigration_v15ToV16WithData_maintainsDataIntegrity() local 59 populateDb(db, fakeData); in performMigration_v15ToV16WithData_maintainsDataIntegrity() 65 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v15ToV16WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV22Test.java | 56 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV21(source1Id); in performMigration_v21ToV22WithData_maintainsDataIntegrity() local 57 populateDb(db, fakeData); in performMigration_v21ToV22WithData_maintainsDataIntegrity() 61 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v21ToV22WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV21Test.java | 56 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV20(source1Id); in performMigration_v20ToV21WithData_maintainsDataIntegrity() local 57 populateDb(db, fakeData); in performMigration_v20ToV21WithData_maintainsDataIntegrity() 61 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v20ToV21WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV19Test.java | 57 Map<String, List<ContentValues>> fakeData = createFakeDataV19(source1Id); in performMigration_v18ToV19WithData_maintainsDataIntegrity() local 58 populateDb(db, fakeData); in performMigration_v18ToV19WithData_maintainsDataIntegrity() 69 fakeData, in performMigration_v18ToV19WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV34Test.java | 57 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV33(source1Id, trigger1Id); in performMigration_v33ToV34WithData_maintainsDataIntegrity() local 58 populateDb(db, fakeData); in performMigration_v33ToV34WithData_maintainsDataIntegrity() 62 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v33ToV34WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV27Test.java | 55 Map<String, List<ContentValues>> fakeData = createFakeDataV26(); in performMigration_v26ToV27WithData_maintainsDataIntegrity() local 56 populateDb(db, fakeData); in performMigration_v26ToV27WithData_maintainsDataIntegrity() 60 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v26ToV27WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV35Test.java | 55 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV34(); in performMigration_v34ToV35WithData_maintainsDataIntegrity() local 56 populateDb(db, fakeData); in performMigration_v34ToV35WithData_maintainsDataIntegrity() 60 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v34ToV35WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV32Test.java | 57 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV31(trigger1Id); in performMigration_v31ToV32WithData_maintainsDataIntegrity() local 58 populateDb(db, fakeData); in performMigration_v31ToV32WithData_maintainsDataIntegrity() 66 MigrationTestHelper.verifyDataInDb(db, fakeData, new HashMap<>(), columnsToBeSkipped); in performMigration_v31ToV32WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV30Test.java | 57 Map<String, List<ContentValues>> fakeData = createFakeDataSourceV29(source1Id); in performMigration_v29ToV30WithData_maintainsDataIntegrity() local 58 populateDb(db, fakeData); in performMigration_v29ToV30WithData_maintainsDataIntegrity() 65 MigrationTestHelper.verifyDataInDb(db, fakeData, new HashMap<>(), columnsToBeSkipped); in performMigration_v29ToV30WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV29Test.java | 65 Map<String, List<ContentValues>> fakeData = fakeDataPair.first; in performMigration_v28ToV29WithData_maintainsDataIntegrity() local 67 populateDb(db, fakeData); in performMigration_v28ToV29WithData_maintainsDataIntegrity() 72 fakeData.computeIfPresent(MeasurementTables.AttributionContract.TABLE, in performMigration_v28ToV29WithData_maintainsDataIntegrity() 80 MigrationTestHelper.verifyDataInDb(db, fakeData, new HashMap<>(), columnsToBeSkipped); in performMigration_v28ToV29WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV23Test.java | 57 Map<String, List<ContentValues>> fakeData = createFakeDataV22(source1Id); in performMigration_v22ToV23WithData_maintainsDataIntegrity() local 58 populateDb(db, fakeData); in performMigration_v22ToV23WithData_maintainsDataIntegrity() 62 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v22ToV23WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV28Test.java | 56 Map<String, List<ContentValues>> fakeData = createFakeDataV27(source1Id); in performMigration_v27ToV28WithData_maintainsDataIntegrity() local 57 populateDb(db, fakeData); in performMigration_v27ToV28WithData_maintainsDataIntegrity() 61 MigrationTestHelper.verifyDataInDb(db, fakeData); in performMigration_v27ToV28WithData_maintainsDataIntegrity()
|
D | MeasurementDbMigratorV11Test.java | 69 Map<String, List<ContentValues>> fakeData = createFakeData(); in performMigration_v10ToV11WithData_maintainsDataIntegrity() local 70 MigrationTestHelper.populateDb(db, fakeData); in performMigration_v10ToV11WithData_maintainsDataIntegrity() 80 fakeData, in performMigration_v10ToV11WithData_maintainsDataIntegrity()
|