Commit 0e23d344 authored by Trent Apted's avatar Trent Apted Committed by Chromium LUCI CQ

Inject orientation closer to wasm for MediaAppIntegrationTest, HandleRawFiles

This better mimics a "real" orientation in a file, so that other layers
between can do their own header machinations.

Bug: 1145029
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Change-Id: I45e6174d1ef49ac207965680fbbaa48155d91a0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2581631Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836000}
parent 3db4ca25
......@@ -234,10 +234,10 @@ IN_PROC_BROWSER_TEST_P(MediaAppIntegrationTest, HandleRawFiles) {
// includes an Exif rotation.
constexpr char kAdd270DegreeRotation[] = R"(
(function() {
const realPiexLoad = PiexLoader.load;
PiexLoader.load = async (buffer, onFailure) => {
const response = await realPiexLoad(buffer, onPiexModuleFailed);
response.orientation = 8;
const realPiexImage = PiexModule.image;
PiexModule.image = (memory, length) => {
const response = realPiexImage(memory, length);
response.preview.orientation = 8;
return response;
};
})();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment