Lines Matching refs:var
41 PollCopyVariable<int> var("var", source); in TEST_F() local
44 unique_ptr<const int> copy_1(var.GetValue( in TEST_F()
56 UmTestUtils::ExpectVariableHasValue(42, &var); in TEST_F()
63 PollCopyVariable<int> var("var", source, &is_set); in TEST_F() local
66 UmTestUtils::ExpectVariableNotSet(&var); in TEST_F()
70 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F()
93 PollCopyVariable<CopyConstructorTestClass> var("var", source); in TEST_F() local
95 var.GetValue(UmTestUtils::DefaultTimeout(), nullptr)); in TEST_F()
105 ConstCopyVariable<int> var("var", source); in TEST_F() local
106 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F()
110 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F()
131 CallCopyVariable<CopyConstructorTestClass> var("var", cb); in TEST_F() local
134 var.GetValue(UmTestUtils::DefaultTimeout(), nullptr)); in TEST_F()
145 CallCopyVariable<bool> var("var", cb); in TEST_F() local
146 UmTestUtils::ExpectVariableNotSet(&var); in TEST_F()
165 AsyncCopyVariable<int> var("var"); in TEST_F() local
166 UmTestUtils::ExpectVariableNotSet(&var); in TEST_F()
167 EXPECT_EQ(kVariableModeAsync, var.GetMode()); in TEST_F()
171 AsyncCopyVariable<int> var("var"); in TEST_F() local
172 var.SetValue(5); in TEST_F()
173 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F()
179 AsyncCopyVariable<int> var("var", 42); in TEST_F() local
180 var.UnsetValue(); in TEST_F()
181 UmTestUtils::ExpectVariableNotSet(&var); in TEST_F()
196 AsyncCopyVariable<int> var("var", 42); in TEST_F() local
198 var.AddObserver(&observer); in TEST_F()
202 var.SetValue(5); in TEST_F()
207 var.SetValue(5); in TEST_F()
212 var.UnsetValue(); in TEST_F()
217 var.UnsetValue(); in TEST_F()
221 var.RemoveObserver(&observer); in TEST_F()