| 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/settings/signed_settings_cache.h" | 5 #include "chrome/browser/chromeos/settings/signed_settings_cache.h" |
| 6 | 6 |
| 7 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" | 7 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 8 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 8 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "chrome/test/base/testing_pref_service.h" | 10 #include "chrome/test/base/testing_pref_service.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 TEST_F(SignedSettingsCacheTest, CorruptData) { | 48 TEST_F(SignedSettingsCacheTest, CorruptData) { |
| 49 EXPECT_TRUE(signed_settings_cache::Store(policy_, &local_state_)); | 49 EXPECT_TRUE(signed_settings_cache::Store(policy_, &local_state_)); |
| 50 | 50 |
| 51 local_state_.SetString(prefs::kSignedSettingsCache, "blaaa"); | 51 local_state_.SetString(prefs::kSignedSettingsCache, "blaaa"); |
| 52 | 52 |
| 53 em::PolicyData policy_out; | 53 em::PolicyData policy_out; |
| 54 EXPECT_FALSE(signed_settings_cache::Retrieve(&policy_out, &local_state_)); | 54 EXPECT_FALSE(signed_settings_cache::Retrieve(&policy_out, &local_state_)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace chromeos | 57 } // namespace chromeos |
| OLD | NEW |