Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/browser/chromeos/policy/enterprise_install_attributes_unittest.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698