| 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 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 base::CommandLine::FromString(L"foo.exe --multi-install --chrome"))); | 496 base::CommandLine::FromString(L"foo.exe --multi-install --chrome"))); |
| 497 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( | 497 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( |
| 498 base::CommandLine::FromString(L"foo.exe --chrome-frame"))); | 498 base::CommandLine::FromString(L"foo.exe --chrome-frame"))); |
| 499 } | 499 } |
| 500 | 500 |
| 501 TEST(SetupUtilTest, GetRegistrationDataCommandKey) { | 501 TEST(SetupUtilTest, GetRegistrationDataCommandKey) { |
| 502 base::string16 app_guid = L"{AAAAAAAA-BBBB-1111-0123-456789ABCDEF}"; | 502 base::string16 app_guid = L"{AAAAAAAA-BBBB-1111-0123-456789ABCDEF}"; |
| 503 UpdatingAppRegistrationData reg_data(app_guid); | 503 UpdatingAppRegistrationData reg_data(app_guid); |
| 504 base::string16 key = | 504 base::string16 key = |
| 505 installer::GetRegistrationDataCommandKey(reg_data, L"test_name"); | 505 installer::GetRegistrationDataCommandKey(reg_data, L"test_name"); |
| 506 EXPECT_TRUE(EndsWith(key, app_guid + L"\\Commands\\test_name", true)); | 506 EXPECT_TRUE(base::EndsWith(key, app_guid + L"\\Commands\\test_name", true)); |
| 507 } | 507 } |
| OLD | NEW |