| 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/login/signed_settings_helper.h" | 5 #include "chrome/browser/chromeos/login/signed_settings_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "chrome/browser/chromeos/cros_settings_names.h" | 10 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 11 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 12 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" | |
| 13 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" | |
| 14 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" | 11 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" |
| 15 #include "chrome/browser/chromeos/login/mock_ownership_service.h" | 12 #include "chrome/browser/chromeos/login/mock_ownership_service.h" |
| 16 #include "chrome/browser/chromeos/login/owner_manager.h" | 13 #include "chrome/browser/chromeos/login/owner_manager.h" |
| 17 #include "chrome/browser/chromeos/login/signed_settings.h" | 14 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 15 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 19 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 16 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 18 #include "chromeos/dbus/mock_dbus_thread_manager.h" |
| 19 #include "chromeos/dbus/mock_session_manager_client.h" |
| 20 #include "content/test/test_browser_thread.h" | 20 #include "content/test/test_browser_thread.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using ::testing::_; | 24 using ::testing::_; |
| 25 using ::testing::A; | 25 using ::testing::A; |
| 26 using ::testing::InSequence; | 26 using ::testing::InSequence; |
| 27 using ::testing::Invoke; | 27 using ::testing::Invoke; |
| 28 using ::testing::WithArg; | 28 using ::testing::WithArg; |
| 29 | 29 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 base::Unretained(&cb))); | 200 base::Unretained(&cb))); |
| 201 SignedSettingsHelper::Get()->StartRetrievePolicyOp( | 201 SignedSettingsHelper::Get()->StartRetrievePolicyOp( |
| 202 base::Bind(&MockSignedSettingsCallbacks::OnRetrievePolicyCompleted, | 202 base::Bind(&MockSignedSettingsCallbacks::OnRetrievePolicyCompleted, |
| 203 base::Unretained(&cb))); | 203 base::Unretained(&cb))); |
| 204 | 204 |
| 205 message_loop_.RunAllPending(); | 205 message_loop_.RunAllPending(); |
| 206 ASSERT_EQ(0, pending_ops_); | 206 ASSERT_EQ(0, pending_ops_); |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace chromeos | 209 } // namespace chromeos |
| OLD | NEW |