| 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/user_cloud_policy_store_chromeos.h" | 5 #include "chrome/browser/policy/user_cloud_policy_store_chromeos.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| 11 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 11 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
| 12 #include "chrome/browser/policy/cloud_policy_constants.h" | 12 #include "chrome/browser/policy/cloud_policy_constants.h" |
| 13 #include "chrome/browser/policy/proto/cloud_policy.pb.h" | 13 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
| 14 #include "chrome/browser/policy/proto/device_management_local.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_local.pb.h" |
| 15 #include "chromeos/dbus/mock_session_manager_client.h" | 15 #include "chromeos/dbus/mock_session_manager_client.h" |
| 16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 17 #include "policy/policy_constants.h" | 17 #include "policy/policy_constants.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 20 |
| 19 namespace em = enterprise_management; | 21 namespace em = enterprise_management; |
| 20 | 22 |
| 21 using testing::AllOf; | 23 using testing::AllOf; |
| 22 using testing::Eq; | 24 using testing::Eq; |
| 23 using testing::Property; | 25 using testing::Property; |
| 24 using testing::Return; | 26 using testing::Return; |
| 25 using testing::SaveArg; | 27 using testing::SaveArg; |
| 26 using testing::_; | 28 using testing::_; |
| 27 | 29 |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 } | 509 } |
| 508 | 510 |
| 509 INSTANTIATE_TEST_CASE_P( | 511 INSTANTIATE_TEST_CASE_P( |
| 510 UserCloudPolicyStoreChromeOSPolicyErrorTest, | 512 UserCloudPolicyStoreChromeOSPolicyErrorTest, |
| 511 UserCloudPolicyStoreChromeOSPolicyErrorTest, | 513 UserCloudPolicyStoreChromeOSPolicyErrorTest, |
| 512 testing::ValuesIn(kPolicyErrorTestCases)); | 514 testing::ValuesIn(kPolicyErrorTestCases)); |
| 513 | 515 |
| 514 } // namespace | 516 } // namespace |
| 515 | 517 |
| 516 } // namespace policy | 518 } // namespace policy |
| OLD | NEW |