cipconnectionmanagertest.cpp 789 B

12345678910111213141516171819202122232425262728
  1. /*******************************************************************************
  2. * Copyright (c) 2016, Rockwell Automation, Inc.
  3. * All rights reserved.
  4. *
  5. ******************************************************************************/
  6. #include <CppUTest/TestHarness.h>
  7. #include <stdint.h>
  8. #include <string.h>
  9. extern "C" {
  10. #include "cipconnectionmanager.h"
  11. }
  12. TEST_GROUP(CipConnectionManager) {
  13. };
  14. TEST(CipConnectionManager, GetForwardOpenFixedVarFlag) {
  15. ConnectionObject connection_object;
  16. connection_object.t_to_o_network_connection_parameter = 0x2222;
  17. ConnectionObjectFixedVariable fixed_variable =
  18. GetConnectionObjectTargetToOriginatorFixedOrVariableConnectionSize(
  19. &connection_object);
  20. CHECK_EQUAL(kConnectionObjectVariableConnectionSize, fixed_variable);
  21. }