gecko-dev/image/test/gtest
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55443

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
..
Common.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
Common.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestADAM7InterpolatingFilter.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestAnimationFrameBuffer.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestBlendAnimationFilter.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestContainers.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestCopyOnWrite.cpp
TestDecodeToSurface.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestDecoders.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestDecodersPerf.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestDeinterlacingFilter.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestDownscalingFilter.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestDownscalingFilterNoSkia.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestFrameAnimator.cpp
TestLoader.cpp
TestMetadata.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestRemoveFrameRectFilter.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestSourceBuffer.cpp
TestStreamingLexer.cpp
TestSurfaceCache.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
TestSurfacePipeIntegration.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestSurfaceSink.cpp Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
TestSwizzleFilter.cpp Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel 2019-10-02 13:37:30 +00:00
animated-with-extra-image-sub-blocks.gif
blend.gif
blend.png
blend.webp
corrupt-with-bad-bmp-height.ico
corrupt-with-bad-bmp-width.ico
corrupt-with-bad-ico-bpp.ico
corrupt.jpg
downscaled.bmp
downscaled.gif
downscaled.ico
downscaled.icon Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
downscaled.jpg
downscaled.png
downscaled.webp
first-frame-green.gif
first-frame-green.png
first-frame-green.webp
first-frame-padding.gif
green-1x1-truncated.gif
green-large-bmp.ico
green-large-png.ico
green-multiple-sizes.ico
green.bmp
green.gif
green.icc_srgb.webp
green.ico
green.icon Bug 1594425 - Part 3. Make image decoder gtests use SurfaceFormat::OS_RGBA. r=tnikkel 2019-11-12 18:22:41 +00:00
green.jpg
green.png
green.webp
invalid-truncated-metadata.bmp
large.webp
moz.build Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel 2019-10-02 13:37:30 +00:00
no-frame-delay.gif
perf_cmyk.jpg Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_gray.jpg Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_gray.png Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_gray_alpha.png Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb.gif Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb.png Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb_alpha.png Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb_alpha_lossless.webp Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb_alpha_lossy.webp Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb_lossless.webp Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_srgb_lossy.webp Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
perf_ycbcr.jpg Bug 1558451 - Add gtest microbenchmarks for image decoders. r=tnikkel 2019-06-11 17:46:13 -04:00
rle4.bmp
rle8.bmp
transparent-ico-with-and-mask.ico
transparent-if-within-ico.bmp
transparent-no-alpha-header.webp
transparent.gif
transparent.png
transparent.webp