| 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/util/google_update_settings.h" | 5 #include "chrome/installer/util/google_update_settings.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlwapi.h> // For SHDeleteKey. | 8 #include <shlwapi.h> // For SHDeleteKey. |
| 9 | 9 |
| 10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/installer/util/util_constants.h" | 25 #include "chrome/installer/util/util_constants.h" |
| 26 #include "chrome/installer/util/work_item_list.h" | 26 #include "chrome/installer/util/work_item_list.h" |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
| 28 | 28 |
| 29 using base::win::RegKey; | 29 using base::win::RegKey; |
| 30 using installer::ChannelInfo; | 30 using installer::ChannelInfo; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 const wchar_t kTestProductGuid[] = L"{89F1B351-B15D-48D4-8F10-1298721CF13D}"; | 34 const wchar_t kTestProductGuid[] = L"{89F1B351-B15D-48D4-8F10-1298721CF13D}"; |
| 35 |
| 36 #if defined(GOOGLE_CHROME_BUILD) |
| 35 const wchar_t kTestExperimentLabel[] = L"test_label_value"; | 37 const wchar_t kTestExperimentLabel[] = L"test_label_value"; |
| 38 #endif |
| 36 | 39 |
| 37 // This test fixture redirects the HKLM and HKCU registry hives for | 40 // This test fixture redirects the HKLM and HKCU registry hives for |
| 38 // the duration of the test to make it independent of the machine | 41 // the duration of the test to make it independent of the machine |
| 39 // and user settings. | 42 // and user settings. |
| 40 class GoogleUpdateSettingsTest : public testing::Test { | 43 class GoogleUpdateSettingsTest : public testing::Test { |
| 41 protected: | 44 protected: |
| 42 enum SystemUserInstall { | 45 enum SystemUserInstall { |
| 43 SYSTEM_INSTALL, | 46 SYSTEM_INSTALL, |
| 44 USER_INSTALL, | 47 USER_INSTALL, |
| 45 }; | 48 }; |
| (...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, | 1360 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, |
| 1358 StatsState::FALSE_SETTING, StatsState::FALSE_SETTING), | 1361 StatsState::FALSE_SETTING, StatsState::FALSE_SETTING), |
| 1359 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, | 1362 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, |
| 1360 StatsState::FALSE_SETTING, StatsState::TRUE_SETTING), | 1363 StatsState::FALSE_SETTING, StatsState::TRUE_SETTING), |
| 1361 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, | 1364 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, |
| 1362 StatsState::TRUE_SETTING, StatsState::NO_SETTING), | 1365 StatsState::TRUE_SETTING, StatsState::NO_SETTING), |
| 1363 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, | 1366 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, |
| 1364 StatsState::TRUE_SETTING, StatsState::FALSE_SETTING), | 1367 StatsState::TRUE_SETTING, StatsState::FALSE_SETTING), |
| 1365 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, | 1368 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, |
| 1366 StatsState::TRUE_SETTING, StatsState::TRUE_SETTING))); | 1369 StatsState::TRUE_SETTING, StatsState::TRUE_SETTING))); |
| OLD | NEW |