| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 "components/user_prefs/tracked/registry_hash_store_contents_win.h" | 5 #include "services/preferences/tracked/registry_hash_store_contents_win.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/test/test_reg_util_win.h" | 9 #include "base/test/test_reg_util_win.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "base/win/registry.h" | 11 #include "base/win/registry.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 contents->Reset(); | 111 contents->Reset(); |
| 112 | 112 |
| 113 stored_mac.clear(); | 113 stored_mac.clear(); |
| 114 EXPECT_FALSE(contents->GetMac(kAtomicPrefPath, &stored_mac)); | 114 EXPECT_FALSE(contents->GetMac(kAtomicPrefPath, &stored_mac)); |
| 115 EXPECT_TRUE(stored_mac.empty()); | 115 EXPECT_TRUE(stored_mac.empty()); |
| 116 | 116 |
| 117 split_macs.clear(); | 117 split_macs.clear(); |
| 118 EXPECT_FALSE(contents->GetSplitMacs(kSplitPrefPath, &split_macs)); | 118 EXPECT_FALSE(contents->GetSplitMacs(kSplitPrefPath, &split_macs)); |
| 119 EXPECT_EQ(0U, split_macs.size()); | 119 EXPECT_EQ(0U, split_macs.size()); |
| 120 } | 120 } |
| OLD | NEW |