Home | History | Annotate | Download | only in tests

Lines Matching full:override

283     TestOverrideFunction override,
297 bool success = override(identity_address,
326 TestOverrideFunction override = OverrideFunctionWithDetour;
328 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
329 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
330 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix);
331 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix);
336 TestOverrideFunction override = OverrideFunctionWithRedirectJump;
337 TestIdentityFunctionPatching(kIdentityCodeWithJump, override);
341 TestOverrideFunction override = OverrideFunctionWithHotPatch;
343 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix);
347 TestOverrideFunction override = OverrideFunctionWithTrampoline;
349 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
350 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
353 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
354 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
358 TestOverrideFunction override = OverrideFunction;
360 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
361 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
362 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix);
365 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
366 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
367 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix);
368 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix);
371 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
372 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
373 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix);
374 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix);
377 TestIdentityFunctionPatching(kIdentityCodeWithPrologue, override, prefix);
378 TestIdentityFunctionPatching(kIdentityCodeWithPushPop, override, prefix);
379 TestIdentityFunctionPatching(kIdentityCodeWithMov, override, prefix);
380 TestIdentityFunctionPatching(kIdentityCodeWithJump, override, prefix);
386 TestOverrideFunction override,
393 bool success = override(identity_address,
400 success = override(identity_address,
454 TestOverrideFunction override,
459 bool result = override(
467 TestOverrideFunction override = OverrideFunction;
469 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override));
470 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override));
472 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override));
474 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override));
476 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override));
478 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override));
479 override));
480 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override));
481 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override));
482 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override));
483 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override));
488 TestOverrideFunction override = OverrideFunctionWithDetour;
490 EXPECT_FALSE(TestFunctionPatching(kPatchableCode1, override));
491 EXPECT_FALSE(TestFunctionPatching(kPatchableCode2, override));
492 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override));
493 EXPECT_FALSE(TestFunctionPatching(kPatchableCode4, override));
494 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override));
495 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode2, override));
496 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override));
497 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override));
498 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override));
499 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override));
503 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix));
504 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix));
505 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix));
506 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override, prefix));
507 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode1, override, prefix));
508 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix));
509 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode3, override, prefix));
510 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode4, override, prefix));
511 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode5, override, prefix));
512 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode6, override, prefix));
517 TestOverrideFunction override = OverrideFunctionWithRedirectJump;
518 EXPECT_FALSE(TestFunctionPatching(kPatchableCode1, override));
519 EXPECT_FALSE(TestFunctionPatching(kPatchableCode2, override));
520 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override));
521 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override));
522 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override));
523 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode2, override));
524 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override));
525 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override));
526 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override));
527 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override));
531 TestOverrideFunction override = OverrideFunctionWithHotPatch;
534 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix));
535 EXPECT_FALSE(TestFunctionPatching(kPatchableCode2, override, prefix));
536 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix));
537 EXPECT_FALSE(TestFunctionPatching(kPatchableCode4, override, prefix));
539 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix));
540 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix));
541 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix));
542 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix));
543 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix));
544 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix));
548 TestOverrideFunction override = OverrideFunctionWithTrampoline;
551 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix));
552 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix));
554 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix));
556 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix));
558 EXPECT_FALSE(TestFunctionPatching(kPatchableCode4, override, prefix));
560 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix));
561 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode2, override, prefix));
562 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix));
563 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix));
564 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix));
565 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix));
569 TestOverrideFunction override = OverrideFunction;
572 EXPECT_TRUE(TestFunctionPatching(kPatchableCode1, override, prefix));
573 EXPECT_TRUE(TestFunctionPatching(kPatchableCode2, override, prefix));
575 EXPECT_FALSE(TestFunctionPatching(kPatchableCode3, override, prefix));
577 EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override, prefix));
579 EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override, prefix));
581 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override, prefix));
582 EXPECT_TRUE(TestFunctionPatching(kUnpatchableCode2, override, prefix));
583 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode3, override, prefix));
584 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode4, override, prefix));
585 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode5, override, prefix));
586 EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix));