Home
last modified time | relevance | path

Searched refs:fakeData (Results 1 – 25 of 34) sorted by relevance

12

/packages/services/Car/cpp/computepipe/tests/fuzz/
DSemanticManagerFuzzer.cpp44 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/
DSharedDbMigratorV3Test.java66 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()
DMigrationTestHelper.java56 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()
DSharedDbMigratorV4Test.java74 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()
DSharedDbMigratorV2Test.java66 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/
DSemanticManagerTest.cpp73 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/
DMeasurementDbMigratorV14Test.java119 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 …]
DMigrationTestHelper.java62 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()
DMeasurementDbMigratorV20Test.java63 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()
DMeasurementDbMigratorV12Test.java58 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()
DMeasurementDbMigratorV10Test.java55 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()
DMeasurementDbMigratorV36Test.java51 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()
DMeasurementDbMigratorV16Test.java58 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()
DMeasurementDbMigratorV22Test.java56 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()
DMeasurementDbMigratorV21Test.java56 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()
DMeasurementDbMigratorV19Test.java57 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()
DMeasurementDbMigratorV34Test.java57 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()
DMeasurementDbMigratorV27Test.java55 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()
DMeasurementDbMigratorV35Test.java55 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()
DMeasurementDbMigratorV32Test.java57 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()
DMeasurementDbMigratorV30Test.java57 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()
DMeasurementDbMigratorV29Test.java65 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()
DMeasurementDbMigratorV23Test.java57 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()
DMeasurementDbMigratorV28Test.java56 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()
DMeasurementDbMigratorV11Test.java69 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()

12