mock_tests.cpp 736 B

123456789101112131415161718
  1. #include <gtest/gtest.h>
  2. #include <pdx/mock_client_channel.h>
  3. #include <pdx/mock_client_channel_factory.h>
  4. #include <pdx/mock_message_reader.h>
  5. #include <pdx/mock_message_writer.h>
  6. #include <pdx/mock_service_endpoint.h>
  7. TEST(MockTypes, Instantiation) {
  8. // Make sure all our interfaces are mocked out properly and mock instances
  9. // can be created.
  10. android::pdx::MockClientChannel client_channel;
  11. android::pdx::MockClientChannelFactory client_channel_factory;
  12. android::pdx::MockInputResourceMapper input_resource_mapper;
  13. android::pdx::MockMessageReader message_reader;
  14. android::pdx::MockOutputResourceMapper output_resource_mapper;
  15. android::pdx::MockMessageWriter message_writer;
  16. android::pdx::MockEndpoint endpoint;
  17. }