| 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.h" | 5 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 11 #include "chrome/browser/chromeos/cros/mock_library_loader.h" | 11 #include "chrome/browser/chromeos/cros/mock_library_loader.h" |
| 12 #include "chrome/browser/chromeos/cros_settings_names.h" | 12 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 13 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" | |
| 14 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" | |
| 15 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" | 13 #include "chrome/browser/chromeos/login/mock_owner_key_utils.h" |
| 16 #include "chrome/browser/chromeos/login/mock_ownership_service.h" | 14 #include "chrome/browser/chromeos/login/mock_ownership_service.h" |
| 17 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" | 15 #include "chrome/browser/chromeos/login/owner_manager_unittest.h" |
| 18 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 16 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 19 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 17 #include "chrome/browser/policy/proto/device_management_backend.pb.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::A; | 24 using ::testing::A; |
| 25 using ::testing::AnyNumber; | 25 using ::testing::AnyNumber; |
| 26 using ::testing::Return; | 26 using ::testing::Return; |
| 27 using ::testing::ReturnRef; | 27 using ::testing::ReturnRef; |
| 28 using ::testing::SaveArg; | 28 using ::testing::SaveArg; |
| 29 using ::testing::StrEq; | 29 using ::testing::StrEq; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 .Times(1); | 390 .Times(1); |
| 391 | 391 |
| 392 s->Execute(); | 392 s->Execute(); |
| 393 message_loop_.RunAllPending(); | 393 message_loop_.RunAllPending(); |
| 394 | 394 |
| 395 s->OnKeyOpComplete(OwnerManager::OPERATION_FAILED, std::vector<uint8>()); | 395 s->OnKeyOpComplete(OwnerManager::OPERATION_FAILED, std::vector<uint8>()); |
| 396 message_loop_.RunAllPending(); | 396 message_loop_.RunAllPending(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 } // namespace chromeos | 399 } // namespace chromeos |
| OLD | NEW |