| 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/chromeos/policy/user_cloud_policy_store_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
| 16 #include "chromeos/dbus/mock_cryptohome_client.h" | 16 #include "chromeos/dbus/mock_cryptohome_client.h" |
| 17 #include "chromeos/dbus/mock_session_manager_client.h" | 17 #include "chromeos/dbus/mock_session_manager_client.h" |
| 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 19 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 19 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
| 20 #include "components/policy/core/common/cloud/policy_builder.h" | 20 #include "components/policy/core/common/cloud/policy_builder.h" |
| 21 #include "policy/policy_constants.h" | 21 #include "policy/policy_constants.h" |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 Mock::VerifyAndClearExpectations(&cryptohome_client_); | 670 Mock::VerifyAndClearExpectations(&cryptohome_client_); |
| 671 | 671 |
| 672 EXPECT_FALSE(store_->policy()); | 672 EXPECT_FALSE(store_->policy()); |
| 673 EXPECT_TRUE(store_->policy_map().empty()); | 673 EXPECT_TRUE(store_->policy_map().empty()); |
| 674 EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status()); | 674 EXPECT_EQ(CloudPolicyStore::STATUS_VALIDATION_ERROR, store_->status()); |
| 675 } | 675 } |
| 676 | 676 |
| 677 } // namespace | 677 } // namespace |
| 678 | 678 |
| 679 } // namespace policy | 679 } // namespace policy |
| OLD | NEW |