Lines Matching refs:install_attributes_
51 install_attributes_.reset(new EnterpriseInstallAttributes(
76 scoped_ptr<EnterpriseInstallAttributes> install_attributes_;
84 install_attributes_->LockDevice(
127 install_attributes_->GetRegistrationUser());
131 install_attributes_->ReadCacheFile(GetTempPath());
132 EXPECT_FALSE(install_attributes_->IsEnterpriseDevice());
138 EXPECT_TRUE(install_attributes_->IsEnterpriseDevice());
142 install_attributes_->ReadCacheFile(GetTempPath());
143 EXPECT_EQ(std::string(), install_attributes_->GetDomain());
149 EXPECT_EQ(kTestDomain, install_attributes_->GetDomain());
153 install_attributes_->ReadCacheFile(GetTempPath());
154 EXPECT_EQ(std::string(), install_attributes_->GetRegistrationUser());
160 EXPECT_EQ(kTestUser, install_attributes_->GetRegistrationUser());
164 install_attributes_->ReadCacheFile(GetTempPath());
165 EXPECT_EQ(std::string(), install_attributes_->GetDeviceId());
171 EXPECT_EQ(kTestDeviceId, install_attributes_->GetDeviceId());
175 install_attributes_->ReadCacheFile(GetTempPath());
176 EXPECT_EQ(DEVICE_MODE_PENDING, install_attributes_->GetMode());
183 install_attributes_->GetMode());
187 install_attributes_->ReadCacheFile(GetTempPath());
188 EXPECT_EQ(DEVICE_MODE_PENDING, install_attributes_->GetMode());
192 install_attributes_->ReadImmutableAttributes(loop.QuitClosure());
196 EXPECT_EQ(DEVICE_MODE_CONSUMER, install_attributes_->GetMode());
200 install_attributes_->ReadCacheFile(GetTempPath());
201 EXPECT_EQ(DEVICE_MODE_PENDING, install_attributes_->GetMode());
211 install_attributes_->GetMode());
212 ASSERT_TRUE(install_attributes_->IsConsumerKioskDeviceWithAutoLaunch());
216 install_attributes_->ReadCacheFile(GetTempPath());
217 EXPECT_EQ(DEVICE_MODE_PENDING, install_attributes_->GetMode());
225 install_attributes_->ReadImmutableAttributes(loop.QuitClosure());
229 EXPECT_EQ(DEVICE_MODE_ENTERPRISE, install_attributes_->GetMode());
230 EXPECT_EQ(kTestDomain, install_attributes_->GetDomain());
231 EXPECT_EQ(kTestUser, install_attributes_->GetRegistrationUser());
232 EXPECT_EQ("", install_attributes_->GetDeviceId());
244 install_attributes_->ReadCacheFile(GetTempPath());
245 EXPECT_EQ(DEVICE_MODE_ENTERPRISE, install_attributes_->GetMode());
246 EXPECT_EQ(kTestDomain, install_attributes_->GetDomain());
247 EXPECT_EQ(kTestUser, install_attributes_->GetRegistrationUser());
248 EXPECT_EQ("", install_attributes_->GetDeviceId());
258 install_attributes_->ReadCacheFile(GetTempPath());
260 install_attributes_->GetMode());
261 EXPECT_EQ("", install_attributes_->GetDomain());
262 EXPECT_EQ("", install_attributes_->GetRegistrationUser());
263 EXPECT_EQ("", install_attributes_->GetDeviceId());
271 install_attributes_->ReadCacheFile(GetTempPath());
272 EXPECT_EQ("", install_attributes_->GetRegistrationUser());
283 install_attributes_->ReadCacheFile(GetTempPath());
284 EXPECT_EQ(kTestUser, install_attributes_->GetRegistrationUser());