Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / tabs / pinned_tab_test_utils.cc
blob7d407f57d7287b9d576c826d888900fc26efee47
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"
7 namespace {
9 std::string TabToString(const StartupTab& tab) {
10 return tab.url.spec() + ":" + (tab.is_pinned ? "pinned" : "");
13 } // namespace
15 // static
16 std::string PinnedTabTestUtils::TabsToString(
17 const std::vector<StartupTab>& values) {
18 std::string result;
19 for (size_t i = 0; i < values.size(); ++i) {
20 if (i != 0)
21 result += " ";
22 result += TabToString(values[i]);
24 return result;