Changeset 10460 for code/branches/core7/test/core
- Timestamp:
- May 24, 2015, 11:19:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/singleton/ScopeTest.cc
r10459 r10460 1 1 #include <gtest/gtest.h> 2 2 #include "core/singleton/ScopedSingletonIncludes.h" 3 #include "core/module/ModuleInstance.h" 3 4 4 5 namespace orxonox … … 19 20 ManageScopedSingleton(TestSingletonRoot, ScopeID::Root, false); 20 21 ManageScopedSingleton(TestSingletonGraphics, ScopeID::Graphics, false); 22 23 // Fixture 24 class ScopeTest : public ::testing::Test 25 { 26 public: 27 virtual void SetUp() 28 { 29 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(); 30 } 31 32 virtual void TearDown() 33 { 34 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(); 35 } 36 }; 21 37 } 22 38 23 TEST (Scope, ScopesDoNotExist)39 TEST_F(ScopeTest, ScopesDoNotExist) 24 40 { 25 41 EXPECT_FALSE(Scope<ScopeID::Root>::isActive()); … … 27 43 } 28 44 29 TEST (Scope, SingletonsDoNotExist)45 TEST_F(ScopeTest, SingletonsDoNotExist) 30 46 { 31 47 EXPECT_FALSE(TestSingletonRoot::exists()); … … 33 49 } 34 50 35 TEST (Scope, RootScope)51 TEST_F(ScopeTest, RootScope) 36 52 { 37 53 EXPECT_FALSE(Scope<ScopeID::Root>::isActive()); … … 43 59 } 44 60 45 TEST (DISABLED_Scope,RootAndGraphicsScope)61 TEST_F(ScopeTest, DISABLED_RootAndGraphicsScope) 46 62 { 47 63 EXPECT_FALSE(Scope<ScopeID::Graphics>::isActive()); … … 58 74 } 59 75 60 TEST (Scope, RootSingleton)76 TEST_F(ScopeTest, RootSingleton) 61 77 { 62 78 EXPECT_FALSE(TestSingletonRoot::exists()); … … 68 84 } 69 85 70 TEST (DISABLED_Scope,RootAndGraphicsSingleton)86 TEST_F(ScopeTest, DISABLED_RootAndGraphicsSingleton) 71 87 { 72 88 EXPECT_FALSE(TestSingletonGraphics::exists());
Note: See TracChangeset
for help on using the changeset viewer.