Lines Matching full:prefix

217   // Add padding to avoid memory violation when scanning the prefix.  in LoadActiveCode()
327 FunctionPrefixKind prefix = FunctionPrefixDetour; in TEST() local
328 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
329 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
330 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix); in TEST()
331 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix); in TEST()
342 FunctionPrefixKind prefix = FunctionPrefixHotPatch; in TEST() local
343 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix); in TEST()
348 FunctionPrefixKind prefix = FunctionPrefixNone; in TEST() local
349 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
350 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
352 prefix = FunctionPrefixPadding; in TEST()
353 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
354 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
359 FunctionPrefixKind prefix = FunctionPrefixNone; in TEST() local
360 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
361 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
362 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix); in TEST()
364 prefix = FunctionPrefixPadding; in TEST()
365 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
366 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
367 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix); in TEST()
368 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix); in TEST()
370 prefix = FunctionPrefixHotPatch; in TEST()
371 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
372 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
373 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix); in TEST()
374 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix); in TEST()
376 prefix = FunctionPrefixDetour; in TEST()
377 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix); in TEST()
378 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix); in TEST()
379 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix); in TEST()
380 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix); in TEST()
489 // Without the prefix, no function can be detoured. in TEST()
501 // With the prefix, all functions can be detoured. in TEST()
502 FunctionPrefixKind prefix = FunctionPrefixDetour; in TEST() local
503 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix)); in TEST()
504 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix)); in TEST()
505 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
506 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override, prefix)); in TEST()
507 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode1, override, prefix)); in TEST()
508 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix)); in TEST()
509 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode3, override, prefix)); in TEST()
510 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode4, override, prefix)); in TEST()
511 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode5, override, prefix)); in TEST()
512 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode6, override, prefix)); in TEST()
532 FunctionPrefixKind prefix = FunctionPrefixHotPatch; in TEST() local
534 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix)); in TEST()
535 EXPECT_FALSE(TestFunctionPatching(kPatchableCode2, override, prefix)); in TEST()
536 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
537 EXPECT_FALSE(TestFunctionPatching(kPatchableCode4, override, prefix)); in TEST()
539 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix)); in TEST()
540 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix)); in TEST()
541 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix)); in TEST()
542 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix)); in TEST()
543 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix)); in TEST()
544 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix)); in TEST()
549 FunctionPrefixKind prefix = FunctionPrefixPadding; in TEST() local
551 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix)); in TEST()
552 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix)); in TEST()
554 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
556 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
558 EXPECT_FALSE(TestFunctionPatching(kPatchableCode4, override, prefix)); in TEST()
560 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix)); in TEST()
561 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode2, override, prefix)); in TEST()
562 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix)); in TEST()
563 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix)); in TEST()
564 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix)); in TEST()
565 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix)); in TEST()
570 FunctionPrefixKind prefix = FunctionPrefixPadding; in TEST() local
572 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix)); in TEST()
573 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix)); in TEST()
575 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
577 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix)); in TEST()
579 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override, prefix)); in TEST()
581 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix)); in TEST()
582 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix)); in TEST()
583 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix)); in TEST()
584 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix)); in TEST()
585 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix)); in TEST()
586 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix)); in TEST()