~unity-team/unity-scopes-api/devel

« back to all changes in this revision

Viewing changes to test/gtest/scopes/Aggregation/Keywords_test.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2016-11-29 07:56:52 UTC
  • mfrom: (692.1.9 gtest-fixes)
  • Revision ID: tarmac-20161129075652-hnzcrh7u4ruxognk
Changed tests to use cmake-extras for gtest/gmock 1.8.
Fixed tons of warnings caused by new gtest for private ctors.
Fixed tons of warnings about signed/unsigned comparison.
Fixed segfault in the Utils test.
Fixed test failure in the SettingsDB test.
Fixed lots of places where gtest macros had their arguments in the wrong order.
Added missing dependency for language-pack-tr to control.in.
Replaced debian/control with a minimal dummy so people don't endlessly edit the wrong file (control instead of control.in) by mistake.

Approved by Marcus Tomlinson, unity-api-1-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <unity/scopes/testing/ScopeMetadataBuilder.h>
22
22
 
23
23
#include <boost/filesystem/operations.hpp>
 
24
 
 
25
#pragma GCC diagnostic push
 
26
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
24
27
#include <gtest/gtest.h>
 
28
#pragma GCC diagnostic pop
25
29
 
26
30
#include "AggTestScope.h"
27
31
 
157
161
 
158
162
    // Should see all scopes' results here as all children are enabled by default
159
163
    auto r = receiver->results();
160
 
    EXPECT_EQ(4, r.size());
 
164
    EXPECT_EQ(4u, r.size());
161
165
    EXPECT_TRUE(r.find("A") != r.end());
162
166
    EXPECT_TRUE(r.find("B") != r.end());
163
167
    EXPECT_TRUE(r.find("C") != r.end());
178
182
 
179
183
    // Should not see scope C's results here as it has been disabled
180
184
    r = receiver->results();
181
 
    EXPECT_EQ(3, r.size());
 
185
    EXPECT_EQ(3u, r.size());
182
186
    EXPECT_TRUE(r.find("A") != r.end());
183
187
    EXPECT_TRUE(r.find("B") != r.end());
184
188
    EXPECT_TRUE(r.find("D") != r.end());
198
202
 
199
203
    // Should not see scope C and D's results here as they are disabled
200
204
    r = receiver->results();
201
 
    EXPECT_EQ(2, r.size());
 
205
    EXPECT_EQ(2u, r.size());
202
206
    EXPECT_TRUE(r.find("A") != r.end());
203
207
    EXPECT_TRUE(r.find("B") != r.end());
204
208
 
217
221
 
218
222
    // Should not see scope D's results here as it is still disabled
219
223
    r = receiver->results();
220
 
    EXPECT_EQ(3, r.size());
 
224
    EXPECT_EQ(3u, r.size());
221
225
    EXPECT_TRUE(r.find("A") != r.end());
222
226
    EXPECT_TRUE(r.find("B") != r.end());
223
227
    EXPECT_TRUE(r.find("C") != r.end());
237
241
 
238
242
    // Should see all scopes' results here as all children are enabled again
239
243
    r = receiver->results();
240
 
    EXPECT_EQ(4, r.size());
 
244
    EXPECT_EQ(4u, r.size());
241
245
    EXPECT_TRUE(r.find("A") != r.end());
242
246
    EXPECT_TRUE(r.find("B") != r.end());
243
247
    EXPECT_TRUE(r.find("C") != r.end());
267
271
 
268
272
    // Should see all scopes' results here as all children are enabled by default
269
273
    auto r = receiver->results();
270
 
    EXPECT_EQ(4, r.size());
 
274
    EXPECT_EQ(4u, r.size());
271
275
    EXPECT_TRUE(r.find("A") != r.end());
272
276
    EXPECT_TRUE(r.find("B") != r.end());
273
277
    EXPECT_TRUE(r.find("C") != r.end());