OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/install_static/product_install_details.h" | 5 #include "chrome/install_static/product_install_details.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 { | 133 { |
134 L"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", | 134 L"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", |
135 STABLE_INDEX, true, L"", | 135 STABLE_INDEX, true, L"", |
136 }, | 136 }, |
137 { | 137 { |
138 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\Application" | 138 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome\\Application" |
139 L"\\chrome.exe", | 139 L"\\chrome.exe", |
140 STABLE_INDEX, false, L"", | 140 STABLE_INDEX, false, L"", |
141 }, | 141 }, |
142 { | 142 { |
143 L"C:\\Program Files (x86)\\Google\\Chrome " | |
144 L"Beta\\Application\\chrome.exe", | |
145 BETA_INDEX, true, L"beta", | |
146 }, | |
147 { | |
148 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome Beta\\Application" | |
149 L"\\chrome.exe", | |
150 BETA_INDEX, false, L"beta", | |
151 }, | |
152 { | |
153 L"C:\\Program Files (x86)\\Google\\Chrome Dev\\Application\\chrome.exe", | |
154 DEV_INDEX, true, L"dev", | |
155 }, | |
156 { | |
157 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome Dev\\Application" | |
158 L"\\chrome.exe", | |
159 DEV_INDEX, false, L"dev", | |
160 }, | |
161 { | |
162 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome SxS\\Application" | 143 L"C:\\Users\\user\\AppData\\Local\\Google\\Chrome SxS\\Application" |
163 L"\\chrome.exe", | 144 L"\\chrome.exe", |
164 CANARY_INDEX, false, L"canary", | 145 CANARY_INDEX, false, L"canary", |
165 }, | 146 }, |
166 { | 147 { |
167 L"C:\\Users\\user\\AppData\\Local\\Google\\CHROME SXS\\application" | 148 L"C:\\Users\\user\\AppData\\Local\\Google\\CHROME SXS\\application" |
168 L"\\chrome.exe", | 149 L"\\chrome.exe", |
169 CANARY_INDEX, false, L"canary", | 150 CANARY_INDEX, false, L"canary", |
170 }, | 151 }, |
171 }; | 152 }; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 MakeProductDetails(test_data().path)); | 343 MakeProductDetails(test_data().path)); |
363 EXPECT_THAT(details->update_cohort_name(), StrEq(kPhony)); | 344 EXPECT_THAT(details->update_cohort_name(), StrEq(kPhony)); |
364 } | 345 } |
365 } | 346 } |
366 | 347 |
367 INSTANTIATE_TEST_CASE_P(All, | 348 INSTANTIATE_TEST_CASE_P(All, |
368 MakeProductDetailsTest, | 349 MakeProductDetailsTest, |
369 testing::ValuesIn(kTestData)); | 350 testing::ValuesIn(kTestData)); |
370 | 351 |
371 } // namespace install_static | 352 } // namespace install_static |
OLD | NEW |