Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h

Issue 2645953005: Add more unit tests for ImageResource's DecodeError (Closed)
Patch Set: Include path fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h
diff --git a/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h b/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h
index 0fdabb1148545ff945d3f3281f95bc716beb4bd2..440284713850201af2c4ebc4c9d007bb5bb0cedc 100644
--- a/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h
+++ b/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.h
@@ -8,6 +8,7 @@
#include "core/loader/resource/ImageResource.h"
#include "core/loader/resource/ImageResourceContent.h"
#include "core/loader/resource/ImageResourceObserver.h"
+#include "platform/loader/fetch/ResourceStatus.h"
#include <memory>
namespace blink {
@@ -31,6 +32,9 @@ class MockImageResourceObserver final : public ImageResourceObserver {
int imageWidthOnImageNotifyFinished() const {
return m_imageWidthOnImageNotifyFinished;
}
+ ResourceStatus statusOnImageNotifyFinished() const {
+ return m_statusOnImageNotifyFinished;
+ }
private:
explicit MockImageResourceObserver(ImageResourceContent*);
@@ -45,6 +49,7 @@ class MockImageResourceObserver final : public ImageResourceObserver {
int m_imageWidthOnLastImageChanged;
int m_imageNotifyFinishedCount;
int m_imageWidthOnImageNotifyFinished;
+ ResourceStatus m_statusOnImageNotifyFinished = ResourceStatus::NotStarted;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698