app_shell: Add version number in user agent
[chromium-blink-merge.git] / chrome / browser / ui / tabs / pinned_tab_test_utils.cc
blob0a4225625ea12b2ba0db774b341dd92ca7631a7b
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_app ? "app" : "") + ":" +
11 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id;
14 } // namespace
16 // static
17 std::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]);
25 return result;