DescriptionReplace MockImageResourceClient with MockImageResourceObserver
To distinguish ImageResource and ImageResourceContent in ImageResourceTest
more clearly and make tests more ImageResourceContent-centric, this CL
- Replaces MockImageResourceClient
(that was both a ResourceClient and an ImageResourceObserver) with
MockImageResourceObserver (that is not a ResourceClient),
- Replaces checks on notifyFinished() with checks on imageNotifyFinished(),
- Replaces checks on encodedSize() (that are used to check that expected
image data is loaded) with checks on image width.
BUG=667641
Review-Url: https://codereview.chromium.org/2607023002
Cr-Commit-Position: refs/heads/master@{#445658}
Committed: https://chromium.googlesource.com/chromium/src/+/5488d0abc4a664aefb1e65f883bacea353523dba
Patch Set 1 #Patch Set 2 : Fix imageNotifyFinishedCalled-related tests #
Total comments: 10
Patch Set 3 : style, constexpr #Patch Set 4 : Rebase. #Patch Set 5 : Rebase #Patch Set 6 : Rebase #
Dependent Patchsets: Messages
Total messages: 34 (27 generated)
|