Changeset 10464 for code/branches/core7/test/core
- Timestamp:
- May 25, 2015, 12:13:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/core/singleton/ScopeTest.cc
r10460 r10464 18 18 }; 19 19 20 ManageScopedSingleton(TestSingletonRoot, ScopeID::R oot, false);21 ManageScopedSingleton(TestSingletonGraphics, ScopeID::G raphics, false);20 ManageScopedSingleton(TestSingletonRoot, ScopeID::ROOT, false); 21 ManageScopedSingleton(TestSingletonGraphics, ScopeID::GRAPHICS, false); 22 22 23 23 // Fixture … … 39 39 TEST_F(ScopeTest, ScopesDoNotExist) 40 40 { 41 EXPECT_FALSE(Scope<ScopeID::R oot>::isActive());42 EXPECT_FALSE(Scope<ScopeID::G raphics>::isActive());41 EXPECT_FALSE(Scope<ScopeID::ROOT>::isActive()); 42 EXPECT_FALSE(Scope<ScopeID::GRAPHICS>::isActive()); 43 43 } 44 44 … … 51 51 TEST_F(ScopeTest, RootScope) 52 52 { 53 EXPECT_FALSE(Scope<ScopeID::R oot>::isActive());53 EXPECT_FALSE(Scope<ScopeID::ROOT>::isActive()); 54 54 { // create root scope 55 Scope<ScopeID::R oot> scope;56 EXPECT_TRUE(Scope<ScopeID::R oot>::isActive());55 Scope<ScopeID::ROOT> scope; 56 EXPECT_TRUE(Scope<ScopeID::ROOT>::isActive()); 57 57 } // destroy root scope 58 EXPECT_FALSE(Scope<ScopeID::R oot>::isActive());58 EXPECT_FALSE(Scope<ScopeID::ROOT>::isActive()); 59 59 } 60 60 61 61 TEST_F(ScopeTest, DISABLED_RootAndGraphicsScope) 62 62 { 63 EXPECT_FALSE(Scope<ScopeID::G raphics>::isActive());63 EXPECT_FALSE(Scope<ScopeID::GRAPHICS>::isActive()); 64 64 { // create root scope 65 Scope<ScopeID::R oot> scope;66 EXPECT_FALSE(Scope<ScopeID::G raphics>::isActive());65 Scope<ScopeID::ROOT> scope; 66 EXPECT_FALSE(Scope<ScopeID::GRAPHICS>::isActive()); 67 67 { // create graphics scope 68 Scope<ScopeID::G raphics> scope;69 EXPECT_TRUE(Scope<ScopeID::G raphics>::isActive());68 Scope<ScopeID::GRAPHICS> scope; 69 EXPECT_TRUE(Scope<ScopeID::GRAPHICS>::isActive()); 70 70 } // destroy graphics scope 71 EXPECT_FALSE(Scope<ScopeID::G raphics>::isActive());71 EXPECT_FALSE(Scope<ScopeID::GRAPHICS>::isActive()); 72 72 } // destroy root scope 73 EXPECT_FALSE(Scope<ScopeID::G raphics>::isActive());73 EXPECT_FALSE(Scope<ScopeID::GRAPHICS>::isActive()); 74 74 } 75 75 … … 78 78 EXPECT_FALSE(TestSingletonRoot::exists()); 79 79 { // create root scope 80 Scope<ScopeID::R oot> scope;80 Scope<ScopeID::ROOT> scope; 81 81 EXPECT_TRUE(TestSingletonRoot::exists()); 82 82 } // destroy root scope … … 88 88 EXPECT_FALSE(TestSingletonGraphics::exists()); 89 89 { // create root scope 90 Scope<ScopeID::R oot> scope;90 Scope<ScopeID::ROOT> scope; 91 91 EXPECT_FALSE(TestSingletonGraphics::exists()); 92 92 { // create graphics scope 93 Scope<ScopeID::G raphics> scope;93 Scope<ScopeID::GRAPHICS> scope; 94 94 EXPECT_TRUE(TestSingletonGraphics::exists()); 95 95 } // destroy graphics scope
Note: See TracChangeset
for help on using the changeset viewer.