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

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

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/common/variations/experiment_labels.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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/common/variations/experiment_labels.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698