OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <windows.h> | 5 #include <windows.h> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/win/registry.h" | 9 #include "base/win/registry.h" |
10 #include "chrome/installer/util/registry_key_backup.h" | 10 #include "chrome/installer/util/registry_key_backup.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Now make sure the one we started with is truly empty. | 77 // Now make sure the one we started with is truly empty. |
78 EXPECT_EQ(ERROR_SUCCESS, | 78 EXPECT_EQ(ERROR_SUCCESS, |
79 RegKey(test_data_.root_key(), L"", KEY_QUERY_VALUE) | 79 RegKey(test_data_.root_key(), L"", KEY_QUERY_VALUE) |
80 .DeleteKey(destination_path_.c_str())); | 80 .DeleteKey(destination_path_.c_str())); |
81 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), | 81 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), |
82 destination_path_.c_str())); | 82 destination_path_.c_str())); |
83 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), | 83 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), |
84 KEY_READ).Valid()); | 84 KEY_READ).Valid()); |
85 } | 85 } |
| 86 |
OLD | NEW |