| OLD | NEW | 
|---|
| 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 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 | 8 | 
| 9 #include "base/macros.h" | 9 #include "base/macros.h" | 
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" | 
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" | 
| 12 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" | 
| 13 #include "grit/components_strings.h" | 13 #include "components/strings/grit/components_strings.h" | 
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" | 
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" | 
| 16 #include "ui/gfx/range/range.h" | 16 #include "ui/gfx/range/range.h" | 
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" | 
| 18 | 18 | 
| 19 namespace { | 19 namespace { | 
| 20 | 20 | 
| 21 const struct { | 21 const struct { | 
| 22   const char* const user_visible_url; | 22   const char* const user_visible_url; | 
| 23   const char* const form_origin_url; | 23   const char* const form_origin_url; | 
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 179       false /* is_smartlock_branding_enabled */, | 179       false /* is_smartlock_branding_enabled */, | 
| 180       GetParam(), | 180       GetParam(), | 
| 181       &title, &title_link_range); | 181       &title, &title_link_range); | 
| 182   EXPECT_GE(title.find(branding, 0), title.size()); | 182   EXPECT_GE(title.find(branding, 0), title.size()); | 
| 183   EXPECT_EQ(0U, title_link_range.start()); | 183   EXPECT_EQ(0U, title_link_range.start()); | 
| 184   EXPECT_EQ(0U, title_link_range.end()); | 184   EXPECT_EQ(0U, title_link_range.end()); | 
| 185 } | 185 } | 
| 186 | 186 | 
| 187 INSTANTIATE_TEST_CASE_P(, AccountChooserDialogTitleTest, | 187 INSTANTIATE_TEST_CASE_P(, AccountChooserDialogTitleTest, | 
| 188                         ::testing::Bool()); | 188                         ::testing::Bool()); | 
| OLD | NEW | 
|---|