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

Side by Side Diff: ios/shared/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm

Issue 2921833002: [iOS Clean] Created OverlayService.
Patch Set: Cancel overlays on queue deallocation Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h" 5 #import "ios/shared/chrome/browser/ui/dialogs/nsurl_protection_space_util.h"
6 6
7 #include "base/ios/ios_util.h" 7 #include "base/ios/ios_util.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "components/strings/grit/components_strings.h" 9 #include "components/strings/grit/components_strings.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/gtest_mac.h" 11 #include "testing/gtest_mac.h"
12 #include "testing/platform_test.h" 12 #include "testing/platform_test.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/base/l10n/l10n_util_mac.h" 14 #include "ui/base/l10n/l10n_util_mac.h"
15 15
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 GetProtectionSpaceForHost(kTestHost, NSURLProtectionSpaceHTTPS); 168 GetProtectionSpaceForHost(kTestHost, NSURLProtectionSpaceHTTPS);
169 169
170 ASSERT_TRUE(CanShow(protectionSpace)); 170 ASSERT_TRUE(CanShow(protectionSpace));
171 171
172 // Expecting the following text: 172 // Expecting the following text:
173 // https://chromium.org:80 requires a username and password. 173 // https://chromium.org:80 requires a username and password.
174 NSString* expectedText = l10n_util::GetNSStringF( 174 NSString* expectedText = l10n_util::GetNSStringF(
175 IDS_LOGIN_DIALOG_AUTHORITY, base::SysNSStringToUTF16(kTestHttpsOrigin)); 175 IDS_LOGIN_DIALOG_AUTHORITY, base::SysNSStringToUTF16(kTestHttpsOrigin));
176 EXPECT_NSEQ(expectedText, MessageForHTTPAuth(protectionSpace)); 176 EXPECT_NSEQ(expectedText, MessageForHTTPAuth(protectionSpace));
177 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698