Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11097 for code/trunk/test


Ignore:
Timestamp:
Jan 25, 2016, 9:47:54 PM (9 years ago)
Author:
landauf
Message:

fixed build on tardis.

Location:
code/trunk/test/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/test/core/command/FunctorTest.cc

    r11071 r11097  
    9898    TEST_F(FunctorTest, ReturnsCorrectParamCount)
    9999    {
    100         EXPECT_EQ(0, createFunctor(&DestroyableClass::method0)->getParamCount());
    101         EXPECT_EQ(1, createFunctor(&DestroyableClass::method1)->getParamCount());
    102         EXPECT_EQ(2, createFunctor(&DestroyableClass::method2)->getParamCount());
    103         EXPECT_EQ(3, createFunctor(&DestroyableClass::method3)->getParamCount());
    104         EXPECT_EQ(4, createFunctor(&DestroyableClass::method4)->getParamCount());
    105         EXPECT_EQ(5, createFunctor(&DestroyableClass::method5)->getParamCount());
     100        EXPECT_EQ(0u, createFunctor(&DestroyableClass::method0)->getParamCount());
     101        EXPECT_EQ(1u, createFunctor(&DestroyableClass::method1)->getParamCount());
     102        EXPECT_EQ(2u, createFunctor(&DestroyableClass::method2)->getParamCount());
     103        EXPECT_EQ(3u, createFunctor(&DestroyableClass::method3)->getParamCount());
     104        EXPECT_EQ(4u, createFunctor(&DestroyableClass::method4)->getParamCount());
     105        EXPECT_EQ(5u, createFunctor(&DestroyableClass::method5)->getParamCount());
    106106    }
    107107
     
    663663        EXPECT_EQ(8,  (*c8)(4).get<int>());
    664664
    665         EXPECT_EQ(1, c1->getParamCount());
    666         EXPECT_EQ(1, c2->getParamCount());
    667         EXPECT_EQ(1, c3->getParamCount());
    668         EXPECT_EQ(2, c4->getParamCount());
    669         EXPECT_EQ(0, c5->getParamCount());
    670         EXPECT_EQ(1, c6->getParamCount());
    671         EXPECT_EQ(2, c7->getParamCount());
    672         EXPECT_EQ(1, c8->getParamCount());
     665        EXPECT_EQ(1u, c1->getParamCount());
     666        EXPECT_EQ(1u, c2->getParamCount());
     667        EXPECT_EQ(1u, c3->getParamCount());
     668        EXPECT_EQ(2u, c4->getParamCount());
     669        EXPECT_EQ(0u, c5->getParamCount());
     670        EXPECT_EQ(1u, c6->getParamCount());
     671        EXPECT_EQ(2u, c7->getParamCount());
     672        EXPECT_EQ(1u, c8->getParamCount());
    673673
    674674        EXPECT_EQ(typeid(int(*)(int)), c1->getFullIdentifier());
     
    768768        FunctorPtr fp2 = createFunctor(&f2);
    769769        FunctorPtr fp3 = createFunctor(&f3);
    770         ASSERT_EQ(3, fp2->getParamCount());
     770        ASSERT_EQ(3u, fp2->getParamCount());
    771771        ASSERT_NE(fp1->getParamCount(), fp3->getParamCount());
    772772        ASSERT_FALSE(fp2->hasReturnvalue());
  • code/trunk/test/core/object/ObjectListTest.cc

    r11071 r11097  
    114114        ListableTest test3(&context2);
    115115
    116         EXPECT_EQ(3, ObjectList<ListableTest>().size());
    117         EXPECT_EQ(2, ObjectList<ListableTest>(&context1).size());
    118         EXPECT_EQ(1, ObjectList<ListableTest>(&context2).size());
     116        EXPECT_EQ(3u, ObjectList<ListableTest>().size());
     117        EXPECT_EQ(2u, ObjectList<ListableTest>(&context1).size());
     118        EXPECT_EQ(1u, ObjectList<ListableTest>(&context2).size());
    119119    }
    120120
  • code/trunk/test/core/object/StrongPtrTest.cc

    r11071 r11097  
    257257        vector.push_back(test);
    258258
    259         ASSERT_EQ(3, vector.size());
     259        ASSERT_EQ(3u, vector.size());
    260260        EXPECT_EQ(test, vector[0].get());
    261261        EXPECT_EQ(test, vector[1].get());
  • code/trunk/test/core/object/WeakPtrTest.cc

    r11071 r11097  
    184184        vector.push_back(test);
    185185
    186         ASSERT_EQ(3, vector.size());
     186        ASSERT_EQ(3u, vector.size());
    187187        EXPECT_EQ(test, vector[0].get());
    188188        EXPECT_EQ(test, vector[1].get());
Note: See TracChangeset for help on using the changeset viewer.