text: // ======================================================================
  // \title  ExampleComponent/test/ut/GTestBase.cpp
  // \author Auto-generated
  // \brief  cpp file for ExampleComponent component Google Test harness base class
  //
  // \copyright
  // Copyright 2009-2015, by the California Institute of Technology.
  // ALL RIGHTS RESERVED.  United States Government Sponsorship
  // acknowledged.
  //
  // ======================================================================
  
  #include "GTestBase.hpp"
  
  namespace ExampleComponents {
  
    // ----------------------------------------------------------------------
    // Construction and destruction
    // ----------------------------------------------------------------------
  
    ExampleComponentGTestBase ::
      ExampleComponentGTestBase(
  #if FW_OBJECT_NAMES == 1
          const char *const compName,
          const U32 maxHistorySize
  #else
          const U32 maxHistorySize
  #endif
      ) :
          ExampleComponentTesterBase (
  #if FW_OBJECT_NAMES == 1
              compName,
  #endif
              maxHistorySize
          )
    {
  
    }
  
    ExampleComponentGTestBase ::
      ~ExampleComponentGTestBase(void)
    {
  
    }
  
    // ----------------------------------------------------------------------
    // From ports
    // ----------------------------------------------------------------------
  
    void ExampleComponentGTestBase ::
      assertFromPortHistory_size(
          const char *const __ISF_callSiteFileName,
          const U32 __ISF_callSiteLineNumber,
          const U32 size
      ) const
    {
      ASSERT_EQ(size, this->fromPortHistorySize)
        << "\n"
        << "  File:     " << __ISF_callSiteFileName << "\n"
        << "  Line:     " << __ISF_callSiteLineNumber << "\n"
        << "  Value:    Total size of all from port histories\n"
        << "  Expected: " << size << "\n"
        << "  Actual:   " << this->fromPortHistorySize << "\n";
    }
  
    // ----------------------------------------------------------------------
    // From port: exampleOutput
    // ----------------------------------------------------------------------
  
    void ExampleComponentGTestBase ::
      assert_from_exampleOutput_size(
          const char *const __ISF_callSiteFileName,
          const U32 __ISF_callSiteLineNumber,
          const U32 size
      ) const
    {
      ASSERT_EQ(size, this->fromPortHistory_exampleOutput->size())
        << "\n"
        << "  File:     " << __ISF_callSiteFileName << "\n"
        << "  Line:     " << __ISF_callSiteLineNumber << "\n"
        << "  Value:    Size of history for from_exampleOutput\n"
        << "  Expected: " << size << "\n"
        << "  Actual:   " << this->fromPortHistory_exampleOutput->size() << "\n";
    }
  
  } // end namespace ExampleComponents
  