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 "chrome/installer/util/registry_test_data.h" | 5 #include "chrome/installer/util/registry_test_data.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/win/registry.h" | 8 #include "base/win/registry.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 DWORD num_subkeys = 0; | 99 DWORD num_subkeys = 0; |
100 DWORD num_values = 0; | 100 DWORD num_values = 0; |
101 RegKey key; | 101 RegKey key; |
102 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)); | 102 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)); |
103 EXPECT_EQ(ERROR_SUCCESS, | 103 EXPECT_EQ(ERROR_SUCCESS, |
104 RegQueryInfoKey(key.Handle(), NULL, NULL, NULL, &num_subkeys, | 104 RegQueryInfoKey(key.Handle(), NULL, NULL, NULL, &num_subkeys, |
105 NULL, NULL, &num_values, NULL, NULL, NULL, NULL)); | 105 NULL, NULL, &num_values, NULL, NULL, NULL, NULL)); |
106 EXPECT_EQ(0UL, num_subkeys); | 106 EXPECT_EQ(0UL, num_subkeys); |
107 EXPECT_EQ(0UL, num_values); | 107 EXPECT_EQ(0UL, num_values); |
108 } | 108 } |
| 109 |
OLD | NEW |