| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chrome_thread.h" | 7 #include "chrome/browser/chrome_thread.h" |
| 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 9 #include "chrome/browser/chromeos/login/mock_ownership_service.h" |
| 8 #include "chrome/browser/chromeos/login/owner_manager.h" | 10 #include "chrome/browser/chromeos/login/owner_manager.h" |
| 9 #include "chrome/browser/chromeos/login/mock_ownership_service.h" | |
| 10 #include "chrome/browser/chromeos/login/signed_settings.h" | 11 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_library.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using ::testing::_; | 15 using ::testing::_; |
| 16 using ::testing::InSequence; | 16 using ::testing::InSequence; |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 | 19 |
| 20 class MockSignedSettingsHelperCallback : public SignedSettingsHelper::Callback { | 20 class MockSignedSettingsHelperCallback : public SignedSettingsHelper::Callback { |
| 21 public: | 21 public: |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 SignedSettingsHelper::Get()->Cancel(&cb_to_be_canceled); | 143 SignedSettingsHelper::Get()->Cancel(&cb_to_be_canceled); |
| 144 | 144 |
| 145 SignedSettingsHelper::Get()->StartStorePropertyOp(fake_prop_, fake_value_, | 145 SignedSettingsHelper::Get()->StartStorePropertyOp(fake_prop_, fake_value_, |
| 146 &cb); | 146 &cb); |
| 147 SignedSettingsHelper::Get()->StartRetrieveProperty(fake_prop_, &cb); | 147 SignedSettingsHelper::Get()->StartRetrieveProperty(fake_prop_, &cb); |
| 148 | 148 |
| 149 message_loop_.Run(); | 149 message_loop_.Run(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace chromeos | 152 } // namespace chromeos |
| OLD | NEW |