Index: profiler/stack_sampling_profiler_unittest.cc |
diff --git a/profiler/stack_sampling_profiler_unittest.cc b/profiler/stack_sampling_profiler_unittest.cc |
index bcee51e33caedc17940ae641f4f0140310641a3a..33fa6234ac98319215b65d8eb4853a8e33d08dee 100644 |
--- a/profiler/stack_sampling_profiler_unittest.cc |
+++ b/profiler/stack_sampling_profiler_unittest.cc |
@@ -347,7 +347,7 @@ TEST(StackSamplingProfilerTest, MAYBE_StopDuringInterBurstInterval) { |
EXPECT_EQ(1u, profiles[0].samples.size()); |
} |
-// Checks that only completed call stack profiles are captured. |
+// Checks that incomplete call stack profiles are captured. |
#if defined(STACK_SAMPLING_PROFILER_SUPPORTED) |
#define MAYBE_StopDuringInterSampleInterval StopDuringInterSampleInterval |
#else |
@@ -362,7 +362,8 @@ TEST(StackSamplingProfilerTest, MAYBE_StopDuringInterSampleInterval) { |
std::vector<CallStackProfile> profiles; |
CaptureProfiles(params, TimeDelta::FromMilliseconds(50), &profiles); |
- EXPECT_TRUE(profiles.empty()); |
+ ASSERT_EQ(1u, profiles.size()); |
+ EXPECT_EQ(1u, profiles[0].samples.size()); |
} |
// Checks that we can destroy the profiler while profiling. |