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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 base::CommandLine::FromString(L"foo.exe --multi-install --chrome"))); | 600 base::CommandLine::FromString(L"foo.exe --multi-install --chrome"))); |
601 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( | 601 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( |
602 base::CommandLine::FromString(L"foo.exe --chrome-frame"))); | 602 base::CommandLine::FromString(L"foo.exe --chrome-frame"))); |
603 } | 603 } |
604 | 604 |
605 TEST(SetupUtilTest, GetRegistrationDataCommandKey) { | 605 TEST(SetupUtilTest, GetRegistrationDataCommandKey) { |
606 base::string16 app_guid = L"{AAAAAAAA-BBBB-1111-0123-456789ABCDEF}"; | 606 base::string16 app_guid = L"{AAAAAAAA-BBBB-1111-0123-456789ABCDEF}"; |
607 UpdatingAppRegistrationData reg_data(app_guid); | 607 UpdatingAppRegistrationData reg_data(app_guid); |
608 base::string16 key = | 608 base::string16 key = |
609 installer::GetRegistrationDataCommandKey(reg_data, L"test_name"); | 609 installer::GetRegistrationDataCommandKey(reg_data, L"test_name"); |
610 EXPECT_TRUE(base::EndsWith(key, app_guid + L"\\Commands\\test_name", true)); | 610 EXPECT_TRUE(base::EndsWith(key, app_guid + L"\\Commands\\test_name", |
| 611 base::CompareCase::SENSITIVE)); |
611 } | 612 } |
OLD | NEW |