OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/html/canvas/CanvasAsyncBlobCreator.h" | 5 #include "core/html/canvas/CanvasAsyncBlobCreator.h" |
6 | 6 |
7 #include "core/html/ImageData.h" | 7 #include "core/html/ImageData.h" |
8 #include "core/testing/DummyPageHolder.h" | 8 #include "core/testing/DummyPageHolder.h" |
9 #include "platform/testing/UnitTestHelpers.h" | 9 #include "platform/testing/UnitTestHelpers.h" |
10 #include "platform/wtf/Functional.h" | 10 #include "platform/wtf/Functional.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 TEST_F(CanvasAsyncBlobCreatorTest, | 326 TEST_F(CanvasAsyncBlobCreatorTest, |
327 JpegIdleTaskFailedWhenStartTimeoutEventHappens) { | 327 JpegIdleTaskFailedWhenStartTimeoutEventHappens) { |
328 this->PrepareMockCanvasAsyncBlobCreatorFailJpeg(); | 328 this->PrepareMockCanvasAsyncBlobCreatorFailJpeg(); |
329 | 329 |
330 this->AsyncBlobCreator()->ScheduleAsyncBlobCreation(1.0); | 330 this->AsyncBlobCreator()->ScheduleAsyncBlobCreation(1.0); |
331 testing::EnterRunLoop(); | 331 testing::EnterRunLoop(); |
332 | 332 |
333 EXPECT_EQ(IdleTaskStatus::kIdleTaskFailed, | 333 EXPECT_EQ(IdleTaskStatus::kIdleTaskFailed, |
334 this->AsyncBlobCreator()->GetIdleTaskStatus()); | 334 this->AsyncBlobCreator()->GetIdleTaskStatus()); |
335 } | 335 } |
336 } | 336 } // namespace blink |
OLD | NEW |