#include <stdio.h>
#include "cast/common/certificate/testing/test_helpers.h"
#include "cast/common/channel/proto/cast_channel.pb.h"
#include "cast/common/channel/testing/fake_cast_socket.h"
#include "cast/common/channel/testing/mock_socket_error_handler.h"
#include "cast/common/channel/virtual_connection_router.h"
#include "cast/common/public/cast_socket.h"
#include "cast/common/public/parsed_certificate.h"
#include "cast/common/public/trust_store.h"
#include "cast/receiver/channel/device_auth_namespace_handler.h"
#include "cast/receiver/channel/static_credentials.h"
#include "cast/receiver/channel/testing/device_auth_test_helpers.h"
#include "cast/sender/channel/cast_auth_util.h"
#include "cast/sender/channel/message_util.h"
#include "gtest/gtest.h"
#include "platform/test/paths.h"
#include "util/read_file.h"
namespace openscreen::cast {
namespace {
CastMessage;
DeviceAuthMessage;
_;
Invoke;
const std::string& GetSpecificTestDataPath() { … }
class DeviceAuthTest : public ::testing::Test { … };
TEST_F(DeviceAuthTest, MANUAL_SerializeTestData) { … }
TEST_F(DeviceAuthTest, AuthIntegration) { … }
TEST_F(DeviceAuthTest, GoodCrl) { … }
TEST_F(DeviceAuthTest, InvalidCrlTime) { … }
TEST_F(DeviceAuthTest, IssuerRevoked) { … }
TEST_F(DeviceAuthTest, DeviceRevoked) { … }
TEST_F(DeviceAuthTest, IssuerSerialRevoked) { … }
TEST_F(DeviceAuthTest, DeviceSerialRevoked) { … }
TEST_F(DeviceAuthTest, BadCrlSignerCert) { … }
TEST_F(DeviceAuthTest, BadCrlSignature) { … }
}
}