Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: chrome/installer/util/registry_test_data.cc

Issue 7946003: C++ Readability for grt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Trimmed down Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« chrome/installer/util/registry_key_backup.cc ('K') | « chrome/installer/util/registry_test_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698