/external/v8/test/cctest/ |
test-flags.cc | 38 CHECK_EQ(13, FLAG_testing_int_flag); 39 CHECK_EQ(2.5, FLAG_testing_float_flag); 40 CHECK_EQ(0, strcmp(FLAG_testing_string_flag, "Hello, world!")); 61 CHECK_EQ(0, FlagList::SetFlagsFromCommandLine(&argc, 64 CHECK_EQ(7, argc); 66 CHECK_EQ(77, FLAG_testing_int_flag); 67 CHECK_EQ(.25, FLAG_testing_float_flag); 68 CHECK_EQ(0, strcmp(FLAG_testing_string_flag, "no way!")); 78 CHECK_EQ(0, FlagList::SetFlagsFromString(str, StrLength(str))); 80 CHECK_EQ(77, FLAG_testing_int_flag) [all...] |
test-fixed-dtoa.cc | 49 CHECK_EQ("1", buffer.start()); 50 CHECK_EQ(1, point); 53 CHECK_EQ("1", buffer.start()); 54 CHECK_EQ(1, point); 57 CHECK_EQ("1", buffer.start()); 58 CHECK_EQ(1, point); 61 CHECK_EQ("4294967295", buffer.start()); 62 CHECK_EQ(10, point); 65 CHECK_EQ("4294967296", buffer.start()); 66 CHECK_EQ(10, point) [all...] |
test-strtod.cc | 29 CHECK_EQ(0.0, Strtod(vector, 1)); 30 CHECK_EQ(0.0, Strtod(vector, 2)); 31 CHECK_EQ(0.0, Strtod(vector, -2)); 32 CHECK_EQ(0.0, Strtod(vector, -999)); 33 CHECK_EQ(0.0, Strtod(vector, +999)); 36 CHECK_EQ(1.0, Strtod(vector, 0)); 37 CHECK_EQ(10.0, Strtod(vector, 1)); 38 CHECK_EQ(100.0, Strtod(vector, 2)); 39 CHECK_EQ(1e20, Strtod(vector, 20)); 40 CHECK_EQ(1e22, Strtod(vector, 22)) [all...] |
test-conversions.cc | 15 CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX | ALLOW_OCTALS)); 16 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX | ALLOW_OCTALS)); 17 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX | ALLOW_OCTALS)); 18 CHECK_EQ(16.0, StringToDouble(&uc, "0x10", ALLOW_HEX | ALLOW_OCTALS)); 19 CHECK_EQ(255.0, StringToDouble(&uc, "0xff", ALLOW_HEX | ALLOW_OCTALS)); 20 CHECK_EQ(175.0, StringToDouble(&uc, "0xAF", ALLOW_HEX | ALLOW_OCTALS)); 22 CHECK_EQ(0.0, StringToDouble(&uc, "0x0", ALLOW_HEX)); 23 CHECK_EQ(0.0, StringToDouble(&uc, "0X0", ALLOW_HEX)); 24 CHECK_EQ(1.0, StringToDouble(&uc, "0x1", ALLOW_HEX)); 25 CHECK_EQ(16.0, StringToDouble(&uc, "0x10", ALLOW_HEX)) [all...] |
test-bignum-dtoa.cc | 66 CHECK_EQ("1", buffer.start()); 67 CHECK_EQ(1, point); 72 CHECK_EQ("1", buffer.start()); 73 CHECK_EQ(1, point); 78 CHECK_EQ("1", buffer.start()); 79 CHECK_EQ(1, point); 82 CHECK_EQ("15", buffer.start()); 83 CHECK_EQ(1, point); 88 CHECK_EQ("15", buffer.start()); 89 CHECK_EQ(1, point) [all...] |
test-list.cc | 66 CHECK_EQ(1, list[4]); 76 CHECK_EQ(3, list.length()); 78 CHECK_EQ(i, list[i]); 85 CHECK_EQ(3, list.length()); 87 CHECK_EQ(i, list[i]); 97 CHECK_EQ(6, list.length()); 99 CHECK_EQ(i % 3, list[i]); 106 CHECK_EQ(0, list.length()); 108 CHECK_EQ(1, list.length()); 109 CHECK_EQ(1, list.last()) [all...] |
test-dtoa.cc | 67 CHECK_EQ("0", buffer.start()); 68 CHECK_EQ(1, point); 71 CHECK_EQ(1, length); 72 CHECK_EQ("0", buffer.start()); 73 CHECK_EQ(1, point); 76 CHECK_EQ(1, length); 77 CHECK_EQ("0", buffer.start()); 78 CHECK_EQ(1, point); 81 CHECK_EQ("1", buffer.start()); 82 CHECK_EQ(1, point) [all...] |
test-profile-generator.cc | 42 CHECK_EQ(TokenEnumerator::kNoSecurityToken, te.GetTokenId(NULL)); 45 CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); 46 CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); 48 CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); 49 CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); 50 CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); 54 CHECK_EQ(2, te.GetTokenId(*v8::Utils::OpenHandle(*token3))); 55 CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); 56 CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); 61 CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))) [all...] |
test-ast.cc | 40 CHECK_EQ(0, list->length()); 45 CHECK_EQ(1, list->length()); 46 CHECK_EQ(node, list->at(0)); 47 CHECK_EQ(node, list->last()); 53 CHECK_EQ(1 + kElements, list->length()); 56 CHECK_EQ(0, list->length());
|
test-log-utils.cc | 33 CHECK_EQ(ref_buffer->length(), 44 // Helper function used by CHECK_EQ to compare Vectors. Templatized to 53 V8_Fatal(file, line, "CHECK_EQ(%s, %s) failed\n" 63 V8_Fatal(file, line, "CHECK_EQ(%s, %s) failed\n" 79 CHECK_EQ(32, dynabuf.Read(0, buf.start(), buf.length())); 80 CHECK_EQ(32, ReadData(&dynabuf, 0, &buf)); 81 CHECK_EQ(ref_buf, buf); 84 CHECK_EQ(0, dynabuf.Read(32, buf.start(), buf.length())); 85 CHECK_EQ(0, dynabuf.Write(buf.start(), buf.length())); 93 CHECK_EQ(48, dynabuf.Write(ref_buf.start(), ref_buf.length())) [all...] |
test-fast-dtoa.cc | 42 CHECK_EQ("5", buffer.start()); 43 CHECK_EQ(-323, point); 49 CHECK_EQ("17976931348623157", buffer.start()); 50 CHECK_EQ(309, point); 55 CHECK_EQ("4294967272", buffer.start()); 56 CHECK_EQ(10, point); 61 CHECK_EQ("4185580496821357", buffer.start()); 62 CHECK_EQ(299, point); 67 CHECK_EQ("5562684646268003", buffer.start()); 68 CHECK_EQ(-308, point) [all...] |
test-bignum.cc | 57 CHECK_EQ("0", buffer); 60 CHECK_EQ("A", buffer); 63 CHECK_EQ("20", buffer); 68 CHECK_EQ("0", buffer); 71 CHECK_EQ("A", buffer); 74 CHECK_EQ("20", buffer); 77 CHECK_EQ("100", buffer); 82 CHECK_EQ("12345678", buffer); 87 CHECK_EQ("FFFFFFFFFFFFFFFF", buffer); 92 CHECK_EQ("123456789ABCDEF0", buffer) [all...] |
test-lock.cc | 19 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token 20 CHECK_EQ(0, mutex->Unlock()); // can unlock with the right token 27 CHECK_EQ(0, mutex->Lock()); 28 CHECK_EQ(0, mutex->Unlock()); 35 CHECK_EQ(0, mutex->Lock()); 36 CHECK_EQ(0, mutex->Unlock()); 37 CHECK_EQ(0, mutex->Lock()); 38 CHECK_EQ(0, mutex->Unlock());
|
test-cpu-profiler.cc | 130 CHECK_EQ(aaa_str, entry1->name()); 133 CHECK_EQ("bbb", entry2->name()); 136 CHECK_EQ("5", entry3->name()); 137 CHECK_EQ(NULL, generator.code_map()->FindEntry(ToAddress(0x1400))); 140 CHECK_EQ("ddd", entry4->name()); 141 CHECK_EQ(NULL, generator.code_map()->FindEntry(ToAddress(0x1600))); 186 CHECK_EQ(1, top_down_root_children->length()); 187 CHECK_EQ("bbb", top_down_root_children->last()->entry()->name()); 190 CHECK_EQ(1, top_down_bbb_children->length()); 191 CHECK_EQ("5", top_down_bbb_children->last()->entry()->name()) [all...] |
test-utils.cc | 39 CHECK_EQ(-1000000, FastD2I(-1000000.0)); 40 CHECK_EQ(-1, FastD2I(-1.0)); 41 CHECK_EQ(0, FastD2I(0.0)); 42 CHECK_EQ(1, FastD2I(1.0)); 43 CHECK_EQ(1000000, FastD2I(1000000.0)); 45 CHECK_EQ(-1000000, FastD2I(-1000000.123)); 46 CHECK_EQ(-1, FastD2I(-1.234)); 47 CHECK_EQ(0, FastD2I(0.345)); 48 CHECK_EQ(1, FastD2I(1.234)); 49 CHECK_EQ(1000000, FastD2I(1000000.123)) [all...] |
test-double.cc | 19 CHECK_EQ(3512700564088504e-318, Double(ordered).value()); 22 CHECK_EQ(5e-324, Double(min_double64).value()); 25 CHECK_EQ(1.7976931348623157e308, Double(max_double64).value()); 31 CHECK_EQ(0x12 - 0x3FF - 52, diy_fp.e()); 37 CHECK_EQ(-0x3FF - 52 + 1, diy_fp.e()); 43 CHECK_EQ(0x7FE - 0x3FF - 52, diy_fp.e()); 51 CHECK_EQ(0x12 - 0x3FF - 52 - 11, diy_fp.e()); 57 CHECK_EQ(-0x3FF - 52 + 1 - 63, diy_fp.e()); 63 CHECK_EQ(0x7FE - 0x3FF - 52 - 11, diy_fp.e()); 131 CHECK_EQ(1, Double(1.0).Sign()) [all...] |
test-diy-fp.cc | 21 CHECK_EQ(0, diff.e()); 24 CHECK_EQ(0, diy_fp1.e()); 34 CHECK_EQ(64, product.e()); 37 CHECK_EQ(64, diy_fp1.e()); 43 CHECK_EQ(11 + 13 + 64, product.e()); 50 CHECK_EQ(11 + 13 + 64, product.e()); 56 CHECK_EQ(11 + 13 + 64, product.e()); 66 CHECK_EQ(11 + 13 + 64, product.e());
|
test-platform-linux.cc | 30 CHECK_EQ(0, mutex->Lock()); 32 CHECK_EQ(0, mutex->Unlock()); 36 CHECK_EQ(0, mutex->Lock()); 37 CHECK_EQ(count, busy_lock_counter); 41 CHECK_EQ(0, mutex->Unlock()); 62 CHECK_EQ(0, thread_created);
|
test-platform-nullos.cc | 30 CHECK_EQ(0, mutex->Lock()); 32 CHECK_EQ(0, mutex->Unlock()); 36 CHECK_EQ(0, mutex->Lock()); 37 CHECK_EQ(count, busy_lock_counter); 41 CHECK_EQ(0, mutex->Unlock()); 62 CHECK_EQ(0, thread_created);
|
test-hashmap.cc | 52 CHECK_EQ(reinterpret_cast<void*>(x), p->key); 65 CHECK_EQ(reinterpret_cast<void*>(x), p->key); 79 CHECK_EQ(map_.occupancy(), static_cast<double>(count)); 95 CHECK_EQ(0, set.occupancy()); 100 CHECK_EQ(3, set.occupancy()); 104 CHECK_EQ(3, set.occupancy()); 110 CHECK_EQ(3, set.occupancy()); 116 CHECK_EQ(2, set.occupancy()); 122 CHECK_EQ(1, set.occupancy()); 125 CHECK_EQ(0, set.occupancy()) [all...] |
test-deoptimization.cc | 126 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); 128 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(Isolate::Current())); 142 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); 144 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(Isolate::Current())); 166 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); 168 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(Isolate::Current())); 183 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); 185 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(Isolate::Current())); 208 CHECK_EQ(1, env->Global()->Get(v8_str("count"))->Int32Value()); 209 CHECK_EQ(6, env->Global()->Get(v8_str("result"))->Int32Value()) [all...] |
test-circular-queue.cc | 25 CHECK_EQ(NULL, scq.StartDequeue()); 30 CHECK_EQ(NULL, scq.StartDequeue()); 34 CHECK_EQ(NULL, scq.StartDequeue()); 39 CHECK_EQ(NULL, scq.StartDequeue()); 53 CHECK_EQ(static_cast<int64_t>(i), static_cast<int64_t>(*rec)); 54 CHECK_EQ(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 60 CHECK_EQ(NULL, scq.StartDequeue()); 70 CHECK_EQ(static_cast<int64_t>(i), static_cast<int64_t>(*rec)); 71 CHECK_EQ(rec, reinterpret_cast<Record*>(scq.StartDequeue())); 141 CHECK_EQ(NULL, scq.StartDequeue()) [all...] |
/external/pcre/ |
pcre_scanner_unittest.cc | 50 #define CHECK_EQ(a, b) do { \ 78 CHECK_EQ(var, "alpha"); 79 CHECK_EQ(number, 1); 80 CHECK_EQ(s.LineNumber(), 3); 82 CHECK_EQ(comments.size(), 1); 83 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n"); 87 CHECK_EQ(var, "bravo"); 88 CHECK_EQ(number, 2); 90 CHECK_EQ(comments.size(), 1); 91 CHECK_EQ(comments[0].as_string(), " // bravo is set here\n") [all...] |
pcrecpp_unittest.cc | 57 // CHECK_EQ(fp->Write(x), 4) 66 #define CHECK_EQ(a, b) CHECK(a == b) 83 CHECK_EQ(i, 1234); 133 CHECK_EQ(v, 0x ## value); \ 135 CHECK_EQ(v, 0x ## value); \ 159 CHECK_EQ(v, 0 ## value); \ 161 CHECK_EQ(v, 0 ## value); \ 185 CHECK_EQ(v, value); \ 187 CHECK_EQ(v, value); \ 339 CHECK_EQ(one, t->single) [all...] |
/external/chromium/base/threading/ |
thread_local_posix.cc | 18 CHECK_EQ(error, 0); 35 CHECK_EQ(error, 0);
|