| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/enterprise_install_attributes.h" | 5 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 11 #include "chrome/browser/policy/proto/install_attributes.pb.h" | 11 #include "chrome/browser/policy/proto/install_attributes.pb.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 | 15 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 ASSERT_EQ(static_cast<int>(blob.size()), | 165 ASSERT_EQ(static_cast<int>(blob.size()), |
| 166 file_util::WriteFile(GetTempPath(), blob.c_str(), blob.size())); | 166 file_util::WriteFile(GetTempPath(), blob.c_str(), blob.size())); |
| 167 install_attributes_.ReadCacheFile(GetTempPath()); | 167 install_attributes_.ReadCacheFile(GetTempPath()); |
| 168 EXPECT_EQ(DEVICE_MODE_ENTERPRISE, install_attributes_.GetMode()); | 168 EXPECT_EQ(DEVICE_MODE_ENTERPRISE, install_attributes_.GetMode()); |
| 169 EXPECT_EQ(kTestDomain, install_attributes_.GetDomain()); | 169 EXPECT_EQ(kTestDomain, install_attributes_.GetDomain()); |
| 170 EXPECT_EQ(kTestUser, install_attributes_.GetRegistrationUser()); | 170 EXPECT_EQ(kTestUser, install_attributes_.GetRegistrationUser()); |
| 171 EXPECT_EQ("", install_attributes_.GetDeviceId()); | 171 EXPECT_EQ("", install_attributes_.GetDeviceId()); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace policy | 174 } // namespace policy |
| OLD | NEW |