| OLD | NEW |
| 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/tabs/pinned_tab_test_utils.h" | 5 #include "chrome/browser/tabs/pinned_tab_test_utils.h" |
| 6 | 6 |
| 7 typedef BrowserInit::LaunchWithProfile::Tab Tab; | 7 typedef StartupBrowserCreator::LaunchWithProfile::Tab Tab; |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 std::string TabToString(const Tab& tab) { | 11 std::string TabToString(const Tab& tab) { |
| 12 return tab.url.spec() + ":" + (tab.is_app ? "app" : "") + ":" + | 12 return tab.url.spec() + ":" + (tab.is_app ? "app" : "") + ":" + |
| 13 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id; | 13 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id; |
| 14 } | 14 } |
| 15 | 15 |
| 16 } // namespace | 16 } // namespace |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 std::string PinnedTabTestUtils::TabsToString( | 19 std::string PinnedTabTestUtils::TabsToString( |
| 20 const std::vector<BrowserInit::LaunchWithProfile::Tab>& values) { | 20 const std::vector<StartupBrowserCreator::LaunchWithProfile::Tab>& values) { |
| 21 std::string result; | 21 std::string result; |
| 22 for (size_t i = 0; i < values.size(); ++i) { | 22 for (size_t i = 0; i < values.size(); ++i) { |
| 23 if (i != 0) | 23 if (i != 0) |
| 24 result += " "; | 24 result += " "; |
| 25 result += TabToString(values[i]); | 25 result += TabToString(values[i]); |
| 26 } | 26 } |
| 27 return result; | 27 return result; |
| 28 } | 28 } |
| OLD | NEW |