#include "remoting/protocol/pairing_registry.h"
#include <stdlib.h>
#include <algorithm>
#include <utility>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "remoting/protocol/protocol_mock_objects.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Sequence;
namespace {
PairingRegistry;
class MockPairingRegistryCallbacks { … };
void VerifyPairing(PairingRegistry::Pairing expected,
const base::Value::Dict& actual) { … }
}
namespace remoting::protocol {
class PairingRegistryTest : public testing::Test { … };
TEST_F(PairingRegistryTest, CreateAndGetPairings) { … }
TEST_F(PairingRegistryTest, GetAllPairings) { … }
TEST_F(PairingRegistryTest, DeletePairing) { … }
TEST_F(PairingRegistryTest, ClearAllPairings) { … }
ACTION_P(QuitMessageLoop, callback) { … }
MATCHER_P(EqualsClientName, client_name, "") { … }
MATCHER(NoPairings, "") { … }
TEST_F(PairingRegistryTest, SerializedRequests) { … }
}