Skip to content

Instantly share code, notes, and snippets.

@humphd
Forked from RickEyre/TFExample
Created November 22, 2012 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humphd/4132692 to your computer and use it in GitHub Desktop.
Save humphd/4132692 to your computer and use it in GitHub Desktop.
Test Fixture Example
public CueVerticalTest : public testing::Test
{
protected:
virtual void SetUp()
{
}
virtual void SetFile(char * fileName)
{
parser = ItemStorageParser(fileName);
parser.parse();
&cue = parser.getCue(0);
}
virtual void TearDown()
{
}
ItemStorageParser parser;
Cue cue;
}
TEST_F(CueVerticalTest, RL)
{
SetFile("cue-settings/vertical/rl.vtt");
ASSERT_EQ(true, cue.isVerticalRightToLeft());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment