diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-23 15:47:26 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-24 08:17:42 -0800 |
commit | 845699e69899cec95254ce5ab244e88210b23298 (patch) | |
tree | 4f117e8ece66d57f55bd5bb571c48dba3e5f28ff /test/sprite | |
parent | 338f94e7ed73f6b0685f406ac1a8cf389b2aacbb (diff) | |
download | qtlocation-mapboxgl-845699e69899cec95254ce5ab244e88210b23298.tar.gz |
[tests] Simplify MockFileSource
Diffstat (limited to 'test/sprite')
-rw-r--r-- | test/sprite/sprite_store.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sprite/sprite_store.cpp b/test/sprite/sprite_store.cpp index c1b79c7cc6..8f9aebbe67 100644 --- a/test/sprite/sprite_store.cpp +++ b/test/sprite/sprite_store.cpp @@ -220,15 +220,15 @@ TEST(SpriteStore, LoadingCorrupted) { } TEST(SpriteStore, LoadingCancel) { - SpriteStoreTest test(MockFileSource::SuccessWithDelay, "sprite.json"); + SpriteStoreTest test(MockFileSource::Success, "sprite.json"); test.observer.spriteLoaded = [&] () { FAIL() << "Should never be called"; }; - test.fileSource.setOnRequestDelayedCallback([&]{ + test.fileSource.requestEnqueuedCallback = [&]{ test.end(); - }); + }; test.run("test/fixtures/resources/sprite"); } |