gecko-dev/image/test/gtest
Nicholas Nethercote ce10603db1 Bug 1210291 - Streamline StreamingLexer's handling of terminal states. r=seth.
This patch introduces TerminalState and changes LexerTransition::mNextState to
be a Variant<State, TerminalState>. This means that SUCCESS and FAILURE no
longer need to be part of State.

Some things to note:

- This simplifies the handling of Lex()'s return value, which is nice.

- The patch splits Terminate() into TerminateSuccess() and TerminateFailure().

- |const State& aNextState| wouldn't work for the first arg to
  LexerTransition's ctor due to errors in Variant construction that I didn't
  understand. I had to change it to |State aNextState|.

--HG--
extra : rebase_source : f405a67fdf0f1bb712409eafecb21ac9b59d6db0
2015-10-28 01:30:20 -07:00
..
Common.cpp
Common.h
TestCopyOnWrite.cpp
TestDecodeToSurface.cpp
TestDecoders.cpp
TestMetadata.cpp
TestStreamingLexer.cpp Bug 1210291 - Streamline StreamingLexer's handling of terminal states. r=seth. 2015-10-28 01:30:20 -07:00
corrupt.jpg
first-frame-green.gif
first-frame-green.png
first-frame-padding.gif
green.bmp
green.gif
green.ico
green.icon
green.jpg
green.png
moz.build
no-frame-delay.gif
rle4.bmp
rle8.bmp
transparent-if-within-ico.bmp
transparent.gif
transparent.png