summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs/pinned_tab_test_utils.h
blob: 57850ded99174d9dd1fda6ffe291db79a5400767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2011 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.

#ifndef CHROME_BROWSER_TABS_PINNED_TAB_TEST_UTILS_H_
#define CHROME_BROWSER_TABS_PINNED_TAB_TEST_UTILS_H_
#pragma once

#include <string>
#include <vector>

#include "base/basictypes.h"
#include "chrome/browser/ui/startup/startup_browser_creator.h"

class PinnedTabTestUtils {
 public:
  // Converts a set of Tabs into a string. The format is a space separated list
  // of urls. If the tab is an app, ':app' is appended, and if the tab is
  // pinned, ':pinned' is appended.
  static std::string TabsToString(
      const std::vector<StartupBrowserCreator::LaunchWithProfile::Tab>& values);

 private:
  DISALLOW_IMPLICIT_CONSTRUCTORS(PinnedTabTestUtils);
};

#endif  // CHROME_BROWSER_TABS_PINNED_TAB_TEST_UTILS_H_