| 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 #include "chrome/installer/setup/setup_util_unittest.h" | 5 #include "chrome/installer/setup/setup_util_unittest.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "base/threading/platform_thread.h" | 24 #include "base/threading/platform_thread.h" |
| 25 #include "base/version.h" | 25 #include "base/version.h" |
| 26 #include "base/win/registry.h" | 26 #include "base/win/registry.h" |
| 27 #include "base/win/scoped_handle.h" | 27 #include "base/win/scoped_handle.h" |
| 28 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
| 29 #include "chrome/installer/setup/installer_state.h" | 29 #include "chrome/installer/setup/installer_state.h" |
| 30 #include "chrome/installer/setup/setup_constants.h" | 30 #include "chrome/installer/setup/setup_constants.h" |
| 31 #include "chrome/installer/setup/setup_util.h" | 31 #include "chrome/installer/setup/setup_util.h" |
| 32 #include "chrome/installer/util/browser_distribution.h" | 32 #include "chrome/installer/util/browser_distribution.h" |
| 33 #include "chrome/installer/util/google_update_constants.h" | 33 #include "chrome/installer/util/google_update_constants.h" |
| 34 #include "chrome/installer/util/install_util.h" |
| 34 #include "chrome/installer/util/installation_state.h" | 35 #include "chrome/installer/util/installation_state.h" |
| 35 #include "chrome/installer/util/updating_app_registration_data.h" | 36 #include "chrome/installer/util/updating_app_registration_data.h" |
| 36 #include "chrome/installer/util/util_constants.h" | 37 #include "chrome/installer/util/util_constants.h" |
| 37 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
| 38 | 39 |
| 39 namespace { | 40 namespace { |
| 40 | 41 |
| 41 // The privilege tested in ScopeTokenPrivilege tests below. | 42 // The privilege tested in ScopeTokenPrivilege tests below. |
| 42 // Use SE_RESTORE_NAME as it is one of the many privileges that is available, | 43 // Use SE_RESTORE_NAME as it is one of the many privileges that is available, |
| 43 // but not enabled by default on processes running at high integrity. | 44 // but not enabled by default on processes running at high integrity. |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 } | 712 } |
| 712 | 713 |
| 713 // Ensure that all values are absent. | 714 // Ensure that all values are absent. |
| 714 { | 715 { |
| 715 base::win::RegistryValueIterator it(root_, path_.c_str()); | 716 base::win::RegistryValueIterator it(root_, path_.c_str()); |
| 716 ASSERT_EQ(0u, it.ValueCount()); | 717 ASSERT_EQ(0u, it.ValueCount()); |
| 717 } | 718 } |
| 718 } | 719 } |
| 719 | 720 |
| 720 } // namespace installer | 721 } // namespace installer |
| OLD | NEW |