// Copyright 2018 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 COMPONENTS_SYNC_SESSIONS_TEST_MATCHERS_H_ #define COMPONENTS_SYNC_SESSIONS_TEST_MATCHERS_H_ #include #include #include #include "components/sync/protocol/session_specifics.pb.h" #include "testing/gmock/include/gmock/gmock.h" namespace sync_sessions { struct SyncedSession; testing::Matcher MatchesHeader( testing::Matcher session_tag, testing::Matcher> window_ids, testing::Matcher> tab_ids); // Convenience overload. testing::Matcher MatchesHeader( testing::Matcher session_tag, const std::vector& window_ids, const std::vector& tab_ids); testing::Matcher MatchesTab( testing::Matcher session_tag, testing::Matcher window_id, testing::Matcher tab_id, testing::Matcher tab_node_id, testing::Matcher> urls); // Convenience overload. testing::Matcher MatchesTab( testing::Matcher session_tag, testing::Matcher window_id, testing::Matcher tab_id, testing::Matcher tab_node_id, const std::vector& urls); testing::Matcher MatchesSyncedSession( testing::Matcher session_tag, testing::Matcher>> window_id_to_tabs); // Convenience overload. testing::Matcher MatchesSyncedSession( testing::Matcher session_tag, const std::map>& window_id_to_tabs); } // namespace sync_sessions #endif // COMPONENTS_SYNC_SESSIONS_TEST_MATCHERS_H_