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

Side by Side Diff: chrome/installer/setup/setup_util_unittest.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/gcapi/gcapi.cc ('k') | chrome/installer/util/shell_util.cc » ('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/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
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 }
OLDNEW
« no previous file with comments | « chrome/installer/gcapi/gcapi.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698