blob: a852a0756f0f0fa827dbd3fafca44066082378a1 [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.
#ifndef SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_
#define SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_
#pragma once
#include <ostream>
#include "sync/syncable/model_type.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace syncable {
// Defined for googletest. Forwards to ModelTypeSetToString().
void PrintTo(ModelTypeSet model_types, ::std::ostream* os);
// A gmock matcher for ModelTypeSet. Use like:
//
// EXPECT_CALL(mock, ProcessModelTypes(HasModelTypes(expected_types)));
::testing::Matcher<ModelTypeSet> HasModelTypes(ModelTypeSet expected_types);
} // namespace syncable
#endif // SYNC_SYNCABLE_MODEL_TYPE_TEST_UTIL_H_