@@ -23,7 +23,7 @@ class TestRtsanAssertions : public ::testing::Test {
23
23
void SetUp () override { __rtsan_ensure_initialized (); }
24
24
};
25
25
26
- static void testExpectNotRealtime (__rtsan::Context &context,
26
+ static void ExpectViolationAction (__rtsan::Context &context,
27
27
bool expect_violation_callback) {
28
28
::testing::MockFunction<void ()> mock_on_violation;
29
29
EXPECT_CALL (mock_on_violation, Call).Times (expect_violation_callback ? 1 : 0 );
@@ -34,15 +34,15 @@ TEST_F(TestRtsanAssertions,
34
34
ExpectNotRealtimeDoesNotCallViolationActionIfNotInRealtimeContext) {
35
35
__rtsan::Context context{};
36
36
ASSERT_FALSE (context.InRealtimeContext ());
37
- testExpectNotRealtime (context, false );
37
+ ExpectViolationAction (context, false );
38
38
}
39
39
40
40
TEST_F (TestRtsanAssertions,
41
41
ExpectNotRealtimeCallsViolationActionIfInRealtimeContext) {
42
42
__rtsan::Context context{};
43
43
context.RealtimePush ();
44
44
ASSERT_TRUE (context.InRealtimeContext ());
45
- testExpectNotRealtime (context, true );
45
+ ExpectViolationAction (context, true );
46
46
}
47
47
48
48
TEST_F (TestRtsanAssertions,
@@ -51,5 +51,5 @@ TEST_F(TestRtsanAssertions,
51
51
context.RealtimePush ();
52
52
context.BypassPush ();
53
53
ASSERT_TRUE (context.IsBypassed ());
54
- testExpectNotRealtime (context, false );
54
+ ExpectViolationAction (context, false );
55
55
}
0 commit comments