~unity-team/unity/trunk

« back to all changes in this revision

Viewing changes to tests/test_categories.cpp

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2016-11-30 11:05:43 UTC
  • mfrom: (4209.1.4 gtest-1.8-fixes)
  • Revision ID: ci-train-bot@canonical.com-20161130110543-2y3e6447rxbe800u
CMakeLists.txt: add support to compile with GTest 1.8 (LP: #1644062)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  Category cat(nullptr, nullptr, nullptr);
50
50
 
51
51
  bool added = false;
52
 
  ASSERT_EQ(model.row_added.size(), 1);
 
52
  ASSERT_EQ(model.row_added.size(), 1u);
53
53
  model.category_added.connect([&added] (Category const&) { added = true; });
54
54
  model.row_added.emit(cat);
55
55
  EXPECT_TRUE(added);
60
60
  Category cat(nullptr, nullptr, nullptr);
61
61
 
62
62
  bool changed = false;
63
 
  ASSERT_EQ(model.row_changed.size(), 1);
 
63
  ASSERT_EQ(model.row_changed.size(), 1u);
64
64
  model.category_changed.connect([&changed] (Category const&) { changed = true; });
65
65
  model.row_changed.emit(cat);
66
66
  EXPECT_TRUE(changed);
71
71
  Category cat(nullptr, nullptr, nullptr);
72
72
 
73
73
  bool removed = false;
74
 
  ASSERT_EQ(model.row_removed.size(), 1);
 
74
  ASSERT_EQ(model.row_removed.size(), 1u);
75
75
  model.category_removed.connect([&removed] (Category const&) { removed = true; });
76
76
  model.row_removed.emit(cat);
77
77
  EXPECT_TRUE(removed);