~raof/+junk/look-at-1868

« back to all changes in this revision

Viewing changes to tests/integration-tests/test_error_reporting.cpp

  • Committer: Christopher James Halse Rogers
  • Date: 2014-09-01 08:15:05 UTC
  • Revision ID: christopher.halse.rogers@canonical.com-20140901081505-u5qm3ygpsr3jm9uv
Make TestClientIPCRender fail less obtusely on invalid connections or surfaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <gmock/gmock.h>
36
36
#include <gtest/gtest.h>
37
37
#include "mir_test/gmock_fixes.h"
 
38
#include "mir_test/validity_matchers.h"
38
39
 
39
40
namespace mc = mir::compositor;
40
41
namespace mf = mir::frontend;
237
238
 
238
239
            wait_for_connect();
239
240
 
240
 
            ASSERT_TRUE(connection != NULL);
241
 
            EXPECT_TRUE(mir_connection_is_valid(connection));
 
241
            ASSERT_THAT(connection, IsValid());
242
242
 
243
243
            MirSurfaceParameters const request_params =
244
244
            {