Back to index

nux  3.0.0
gtest-nux-windowthread.cpp
Go to the documentation of this file.
00001 #include <string>
00002 #include <fstream>
00003 
00004 #include <iostream>
00005 #include <gmock/gmock.h>
00006 #include <boost/filesystem.hpp>
00007 #include <glib.h>
00008 
00009 #include "Nux/Nux.h"
00010 
00011 
00012 using namespace testing;
00013 
00014 namespace {
00015 
00016 TEST(TestWindowThread, TestCreate)
00017 {
00018   nux::NuxInitialize(0);
00019   nux::WindowThread *wnd_thread = nux::CreateNuxWindow("Nux Window", 300, 200,
00020     nux::WINDOWSTYLE_NORMAL, NULL, false, NULL, NULL);
00021 
00022   ASSERT_TRUE(wnd_thread != NULL);
00023   EXPECT_EQ(wnd_thread->GetWindowTitle(), std::string("Nux Window"));
00024   EXPECT_EQ(wnd_thread->IsModalWindow(), false);
00025 
00026   EXPECT_EQ(wnd_thread->IsComputingLayout(), false);
00027   EXPECT_EQ(wnd_thread->IsInsideLayoutCycle(), false);
00028 
00029   delete wnd_thread;
00030 }
00031 
00032 
00033 }