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