| 49 | } |
| 50 | |
| 51 | TEST(ProfilerTest, NoProfilesAreCollectedWhenDisabled) { |
| 52 | BufferedProfiler profiler(1024); |
| 53 | ParentFunction(&profiler); |
| 54 | auto profile_events = profiler.GetProfileEvents(); |
| 55 | EXPECT_EQ(0, profile_events.size()); |
| 56 | } |
| 57 | |
| 58 | TEST(ProfilingTest, ProfilesAreCollected) { |
| 59 | BufferedProfiler profiler(1024); |
nothing calls this directly
no test coverage detected