deflake (flutter/engine#25864)
This commit is contained in:
@@ -25,6 +25,7 @@ void reportTimingsMain() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
nativeReportTimingsCallback(timestamps);
|
nativeReportTimingsCallback(timestamps);
|
||||||
|
PlatformDispatcher.instance.onReportTimings = (List<FrameTiming> timings) {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -534,8 +534,7 @@ static void CheckFrameTimings(const std::vector<FrameTiming>& timings,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(43192): This test is disable because of flakiness.
|
TEST_F(ShellTest, ReportTimingsIsCalled) {
|
||||||
TEST_F(ShellTest, DISABLED_ReportTimingsIsCalled) {
|
|
||||||
fml::TimePoint start = fml::TimePoint::Now();
|
fml::TimePoint start = fml::TimePoint::Now();
|
||||||
auto settings = CreateSettingsForFixture();
|
auto settings = CreateSettingsForFixture();
|
||||||
std::unique_ptr<Shell> shell = CreateShell(settings);
|
std::unique_ptr<Shell> shell = CreateShell(settings);
|
||||||
@@ -551,6 +550,7 @@ TEST_F(ShellTest, DISABLED_ReportTimingsIsCalled) {
|
|||||||
auto nativeTimingCallback = [&reportLatch,
|
auto nativeTimingCallback = [&reportLatch,
|
||||||
×tamps](Dart_NativeArguments args) {
|
×tamps](Dart_NativeArguments args) {
|
||||||
Dart_Handle exception = nullptr;
|
Dart_Handle exception = nullptr;
|
||||||
|
ASSERT_EQ(timestamps.size(), 0ul);
|
||||||
timestamps = tonic::DartConverter<std::vector<int64_t>>::FromArguments(
|
timestamps = tonic::DartConverter<std::vector<int64_t>>::FromArguments(
|
||||||
args, 0, exception);
|
args, 0, exception);
|
||||||
reportLatch.Signal();
|
reportLatch.Signal();
|
||||||
@@ -1277,6 +1277,7 @@ TEST_F(ShellTest, ReportTimingsIsCalledImmediatelyAfterTheFirstFrame) {
|
|||||||
auto nativeTimingCallback = [&reportLatch,
|
auto nativeTimingCallback = [&reportLatch,
|
||||||
×tamps](Dart_NativeArguments args) {
|
×tamps](Dart_NativeArguments args) {
|
||||||
Dart_Handle exception = nullptr;
|
Dart_Handle exception = nullptr;
|
||||||
|
ASSERT_EQ(timestamps.size(), 0ul);
|
||||||
timestamps = tonic::DartConverter<std::vector<int64_t>>::FromArguments(
|
timestamps = tonic::DartConverter<std::vector<int64_t>>::FromArguments(
|
||||||
args, 0, exception);
|
args, 0, exception);
|
||||||
reportLatch.Signal();
|
reportLatch.Signal();
|
||||||
|
|||||||
Reference in New Issue
Block a user