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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/tabs/pinned_tab_test_utils.h"
9 std::string
TabToString(const StartupTab
& tab
) {
10 return tab
.url
.spec() + ":" + (tab
.is_app
? "app" : "") + ":" +
11 (tab
.is_pinned
? "pinned" : "") + ":" + tab
.app_id
;
17 std::string
PinnedTabTestUtils::TabsToString(
18 const std::vector
<StartupTab
>& values
) {
20 for (size_t i
= 0; i
< values
.size(); ++i
) {
23 result
+= TabToString(values
[i
]);