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

Side by Side Diff: chrome/installer/setup/setup_util_unittest.cc

Issue 10912096: C++ reability review for gab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up last backward if else block found with regex('if \(.* != .*\) \{(\n[^}]*)*\} else') Created 8 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) 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 //Pickup file for readability review.
6
5 #include <windows.h> 7 #include <windows.h>
6 8
7 #include <string> 9 #include <string>
8 10
9 #include "base/file_util.h" 11 #include "base/file_util.h"
10 #include "base/path_service.h" 12 #include "base/path_service.h"
11 #include "base/scoped_temp_dir.h" 13 #include "base/scoped_temp_dir.h"
12 #include "base/time.h" 14 #include "base/time.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/platform_thread.h" 16 #include "base/threading/platform_thread.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 { 183 {
182 installer::ScopedTokenPrivilege dup_scoped_privilege(kTestedPrivilege); 184 installer::ScopedTokenPrivilege dup_scoped_privilege(kTestedPrivilege);
183 ASSERT_TRUE(dup_scoped_privilege.is_enabled()); 185 ASSERT_TRUE(dup_scoped_privilege.is_enabled());
184 ASSERT_TRUE(CurrentProcessHasPrivilege(kTestedPrivilege)); 186 ASSERT_TRUE(CurrentProcessHasPrivilege(kTestedPrivilege));
185 } 187 }
186 ASSERT_TRUE(CurrentProcessHasPrivilege(kTestedPrivilege)); 188 ASSERT_TRUE(CurrentProcessHasPrivilege(kTestedPrivilege));
187 } 189 }
188 190
189 ASSERT_FALSE(CurrentProcessHasPrivilege(kTestedPrivilege)); 191 ASSERT_FALSE(CurrentProcessHasPrivilege(kTestedPrivilege));
190 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698