title: How can I verify if two char * are equal in Google Mock?
body: <p>Let's say I have a Mock like this:</p>
  
  <pre><code>class MockSocket : public Socket
  {
  public:
      MOCK_METHOD1(Write, bool(Packet *p));
  };
  </code></pre>
  
  <p>And I want to test if the Write method is called with an object that satisfies the following conditions:</p>
  
  <ul>
  <li>1) when I call the get_QL() function on this object I receive 0 as a
  return value </li>
  <li>2) when I call get_MAC() function I receive a uint8_t*
  that I know has length 6, but no string terminator.</li>
  </ul>
  
  <p>How can I write the second condition in GMock?
  I tried something like this but the second property is not working correctly.</p>
  
  <pre><code>EXPECT_CALL(ms, Write(AllOf(Property(&amp;ESMCPacket::get_QL, 0), Property(&amp;ESMCPacket::get_MAC, (mmac_source1))))).Times(1);
  </code></pre>