chromium/components/sync_sessions/session_sync_test_helper.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/sync_sessions/session_sync_test_helper.h"

#include <stddef.h>

#include "base/strings/utf_string_conversions.h"
#include "components/sync/protocol/session_specifics.pb.h"
#include "components/sync_device_info/device_info_proto_enum_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace sync_sessions {

static const char* kAppId =;
static const char* kVirtualUrl =;
static const char* kReferrer =;
static const char* kTitle =;

// static
sync_pb::SessionSpecifics
SessionSyncTestHelper::BuildHeaderSpecificsWithoutWindows(
    const std::string& tag,
    const std::string& client_name,
    const syncer::DeviceInfo::FormFactor& device_form_factor) {}

// static
void SessionSyncTestHelper::AddWindowSpecifics(
    SessionID window_id,
    const std::vector<SessionID>& tab_list,
    sync_pb::SessionSpecifics* meta) {}

// static
sync_pb::SessionSpecifics SessionSyncTestHelper::BuildTabSpecifics(
    const std::string& tag,
    const std::string& title,
    const std::string& virtual_url,
    SessionID window_id,
    SessionID tab_id,
    int tab_node_id) {}

sync_pb::SessionSpecifics SessionSyncTestHelper::BuildTabSpecifics(
    const std::string& tag,
    SessionID window_id,
    SessionID tab_id) {}

// Overload of BuildTabSpecifics to allow overriding title and URL.
sync_pb::SessionSpecifics SessionSyncTestHelper::BuildTabSpecifics(
    const std::string& tag,
    const std::string& title,
    const std::string& virtual_url,
    SessionID window_id,
    SessionID tab_id) {}

void SessionSyncTestHelper::Reset() {}

}  // namespace sync_sessions