blob: 3e5727c68612e2721750527c58ad69d6e400a0bc [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include "chrome/browser/ui/tabs/pinned_tab_test_utils.h"
namespace {
std::string TabToString(const StartupTab& tab) {
return tab.url.spec() + ":" + (tab.is_pinned ? "pinned" : "");
}
} // namespace
// static
std::string PinnedTabTestUtils::TabsToString(
const std::vector<StartupTab>& values) {
std::string result;
for (size_t i = 0; i < values.size(); ++i) {
if (i != 0)
result += " ";
result += TabToString(values[i]);
}
return result;
}