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

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

Issue 1291763002: Componentize kExperimentLabelSeparator & BuildExperimentDateString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove "#if defined(OS_WIN)" from google_update_constants.cc Created 5 years, 4 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
« no previous file with comments | « chrome/installer/util/google_update_settings.cc ('k') | components/variations.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/test/scoped_path_override.h" 14 #include "base/test/scoped_path_override.h"
15 #include "base/test/test_reg_util_win.h" 15 #include "base/test/test_reg_util_win.h"
16 #include "base/win/registry.h" 16 #include "base/win/registry.h"
17 #include "base/win/win_util.h" 17 #include "base/win/win_util.h"
18 #include "chrome/common/chrome_constants.h" 18 #include "chrome/common/chrome_constants.h"
19 #include "chrome/installer/util/app_registration_data.h" 19 #include "chrome/installer/util/app_registration_data.h"
20 #include "chrome/installer/util/browser_distribution.h" 20 #include "chrome/installer/util/browser_distribution.h"
21 #include "chrome/installer/util/channel_info.h" 21 #include "chrome/installer/util/channel_info.h"
22 #include "chrome/installer/util/fake_installation_state.h" 22 #include "chrome/installer/util/fake_installation_state.h"
23 #include "chrome/installer/util/google_update_constants.h" 23 #include "chrome/installer/util/google_update_constants.h"
24 #include "chrome/installer/util/google_update_experiment_util.h"
25 #include "chrome/installer/util/util_constants.h" 24 #include "chrome/installer/util/util_constants.h"
26 #include "chrome/installer/util/work_item_list.h" 25 #include "chrome/installer/util/work_item_list.h"
27 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
28 27
29 using base::win::RegKey; 28 using base::win::RegKey;
30 using installer::ChannelInfo; 29 using installer::ChannelInfo;
31 30
32 namespace { 31 namespace {
33 32
34 const wchar_t kTestProductGuid[] = L"{89F1B351-B15D-48D4-8F10-1298721CF13D}"; 33 const wchar_t kTestProductGuid[] = L"{89F1B351-B15D-48D4-8F10-1298721CF13D}";
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, 1359 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL,
1361 StatsState::FALSE_SETTING, StatsState::FALSE_SETTING), 1360 StatsState::FALSE_SETTING, StatsState::FALSE_SETTING),
1362 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, 1361 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL,
1363 StatsState::FALSE_SETTING, StatsState::TRUE_SETTING), 1362 StatsState::FALSE_SETTING, StatsState::TRUE_SETTING),
1364 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, 1363 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL,
1365 StatsState::TRUE_SETTING, StatsState::NO_SETTING), 1364 StatsState::TRUE_SETTING, StatsState::NO_SETTING),
1366 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, 1365 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL,
1367 StatsState::TRUE_SETTING, StatsState::FALSE_SETTING), 1366 StatsState::TRUE_SETTING, StatsState::FALSE_SETTING),
1368 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL, 1367 StatsState(StatsState::kSystemLevel, StatsState::MULTI_INSTALL,
1369 StatsState::TRUE_SETTING, StatsState::TRUE_SETTING))); 1368 StatsState::TRUE_SETTING, StatsState::TRUE_SETTING)));
OLDNEW
« no previous file with comments | « chrome/installer/util/google_update_settings.cc ('k') | components/variations.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698