Fixes linux build error introduced in r980.

Review URL: http://webrtc-codereview.appspot.com/279012

git-svn-id: http://webrtc.googlecode.com/svn/trunk@981 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrike@webrtc.org 2011-11-19 00:14:37 +00:00
parent ad98a3eed0
commit ce9d89d892

View File

@ -42,7 +42,7 @@ TEST(CpuWrapperTest, Usage) {
// Should not take more than 10000 ms.
while (cpu_usage_available && (++num_iterations < 10000)) {
if (cores != NULL) {
ASSERT_GT(num_cores, 0);
ASSERT_GT(num_cores, 0u);
break;
}
sleep_event->Wait(1);
@ -52,14 +52,14 @@ TEST(CpuWrapperTest, Usage) {
const WebRtc_Word32 total = cpu->CpuUsageMultiCore(num_cores, cores);
ASSERT_TRUE(cores != NULL);
EXPECT_GT(num_cores, 0);
EXPECT_GT(num_cores, 0u);
EXPECT_GE(total, 0);
printf("\nNumCores:%d\n", num_cores);
printf("Total cpu:%d\n", total);
for (WebRtc_UWord32 i = 0; i < num_cores; i++) {
printf("Core:%u CPU:%u \n", i, cores[i]);
EXPECT_LE(cores[i], total);
EXPECT_LE(cores[i], static_cast<WebRtc_UWord32> (total));
}
delete cpu;