~ci-train-bot/ubuntu-app-launch/ubuntu-app-launch-ubuntu-yakkety-landing-070

« back to all changes in this revision

Viewing changes to tests/libual-test.cc

  • Committer: Bileto Bot
  • Author(s): Ted Gould
  • Date: 2016-08-25 14:42:35 UTC
  • mfrom: (245.1.1 primary-pid-no-app)
  • Revision ID: ci-train-bot@canonical.com-20160825144235-55v7onco371p6nyc
Use at() instead of operator[]() so that we get an exception on bounds checking

Approved by: Rodney Dawes

Show diffs side-by-side

added added

removed removed

Lines of Context:
509
509
        EXPECT_TRUE(g_variant_equal(calls->params, g_variant_new("(ss)", "freezer", "upstart/application-legacy-multiple-2342345")));
510
510
        ASSERT_TRUE(dbus_test_dbus_mock_object_clear_method_calls(cgmock, cgobject, NULL));
511
511
 
 
512
        /* Check non running app */
 
513
        EXPECT_EQ(0, ubuntu_app_launch_get_primary_pid("chatter.robert-ancell_chatter_2"));
512
514
}
513
515
 
514
516
TEST_F(LibUAL, ApplicationId)