| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |