Bazzar: GoogleTestUI unique configuration flag.

git-svn-id: svn://ultimatepp.org/upp/trunk@14990 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2020-09-05 18:58:40 +00:00
parent 3cf2896c61
commit 2a13927e70
4 changed files with 12 additions and 9 deletions

View file

@ -1,4 +1,4 @@
#ifdef flagTESTING_TEST
#ifdef flagTESTING_GOOGLE_TEST_UI_EXAMPLE
#include "AppWindow.h"
@ -44,11 +44,12 @@ TEST_F(AppWindowTest, ApperanceTest)
if (!FileExists(fileName)) {
encoder.SaveFile(fileName, id);
Cout() << "Non referal window image. Creating and failing test..\n";
EXPECT_TRUE(false);
} else {
auto img = StreamRaster::LoadFileAny(fileName);
EXPECT_EQ(img, id);
ASSERT_TRUE(false);
return;
}
auto img = StreamRaster::LoadFileAny(fileName);
EXPECT_EQ(img, id);
}
#endif