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

Side by Side Diff: chrome/browser/ui/login/login_prompt_unittest.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/panels/panel_browsertest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/ui/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 #include "googleurl/src/gurl.h" 6 #include "googleurl/src/gurl.h"
7 #include "net/base/auth.h" 7 #include "net/base/auth.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 TEST(LoginPromptTest, GetSignonRealm) { 10 TEST(LoginPromptTest, GetSignonRealm) {
(...skipping 17 matching lines...) Expand all
28 "https://www.nowhere.org/WallyWorld", 28 "https://www.nowhere.org/WallyWorld",
29 "https://www.nowhere.org/WallyWorld", 29 "https://www.nowhere.org/WallyWorld",
30 "https://www.nowhere.org:8443/WallyWorld", 30 "https://www.nowhere.org:8443/WallyWorld",
31 "https://www.nowhere.org/WallyWorld", 31 "https://www.nowhere.org/WallyWorld",
32 "https://www.nowhere.org/WallyWorld", 32 "https://www.nowhere.org/WallyWorld",
33 "https://www.nowhere.org/WallyWorld", 33 "https://www.nowhere.org/WallyWorld",
34 "https://www.nowhere.org/WallyWorld" 34 "https://www.nowhere.org/WallyWorld"
35 }; 35 };
36 36
37 for (size_t i = 0; i < arraysize(url); i++) { 37 for (size_t i = 0; i < arraysize(url); i++) {
38 std::string key = GetSignonRealm(GURL(url[i]), *auth_info); 38 std::string key = GetSignonRealm(GURL(url[i]), *auth_info.get());
39 EXPECT_EQ(expected[i], key); 39 EXPECT_EQ(expected[i], key);
40 } 40 }
41 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698