Home
last modified time | relevance | path

Searched refs:CHECK_EQ (Results 1 – 25 of 196) sorted by relevance

12345678

/external/regex-re2/re2/testing/
Dset_test.cc18 CHECK_EQ(s.Add("foo", NULL), 0); in TEST()
19 CHECK_EQ(s.Add("(", NULL), -1); in TEST()
20 CHECK_EQ(s.Add("bar", NULL), 1); in TEST()
22 CHECK_EQ(s.Compile(), true); in TEST()
25 CHECK_EQ(s.Match("foobar", &v), true); in TEST()
26 CHECK_EQ(v.size(), 2); in TEST()
27 CHECK_EQ(v[0], 0); in TEST()
28 CHECK_EQ(v[1], 1); in TEST()
31 CHECK_EQ(s.Match("fooba", &v), true); in TEST()
32 CHECK_EQ(v.size(), 1); in TEST()
[all …]
Dre2_test.cc29 CHECK_EQ(v, 0x ## value); \ in TEST()
31 CHECK_EQ(v, 0x ## value); \ in TEST()
53 CHECK_EQ(v, 0 ## value); \ in TEST()
55 CHECK_EQ(v, 0 ## value); \ in TEST()
77 CHECK_EQ(v, value); \ in TEST()
79 CHECK_EQ(v, value); \ in TEST()
180 CHECK_EQ(one, t->single); in TEST()
182 CHECK_EQ(RE2::GlobalReplace(&all, t->regexp, t->rewrite), t->greplace_count) in TEST()
184 CHECK_EQ(all, t->global); in TEST()
218 CHECK_EQ(s, "kremvax!boris"); in TEST()
[all …]
Drequired_prefix_test.cc51 CHECK_EQ(t.return_value, re->RequiredPrefix(&p, &f, &s)) in TEST()
54 CHECK_EQ(p, string(t.prefix)) in TEST()
56 CHECK_EQ(f, t.foldcase) in TEST()
58 CHECK_EQ(s->ToString(), string(t.suffix)) in TEST()
Dregexp_benchmark.cc32 CHECK_EQ(sp[0], "650-253-0001"); in Test()
33 CHECK_EQ(sp[1], "650"); in Test()
34 CHECK_EQ(sp[2], "253"); in Test()
35 CHECK_EQ(sp[3], "0001"); in Test()
277 CHECK_EQ(u, "Hello World"); in FindAndConsume()
645 CHECK_EQ(re.error(), ""); in CompilePCRE()
652 CHECK_EQ(re.error(), ""); in CompileRE2()
809 CHECK_EQ(prog->SearchDFA(text, NULL, anchor, Prog::kFirstMatch, in SearchDFA()
825 CHECK_EQ(prog->SearchNFA(text, NULL, anchor, Prog::kFirstMatch, NULL, 0), in SearchNFA()
840 CHECK_EQ(prog->SearchOnePass(text, text, anchor, Prog::kFirstMatch, NULL, 0), in SearchOnePass()
[all …]
/external/tpm2/
Dmarshal_test.c27 #define CHECK_EQ(a, b) if (a != b) printf("[ERROR:%d] CHECK_EQ(%s == %s) failed\n", __LINE__, #a, #… macro
84 CHECK_EQ(bytes_marshalled, num_bytes) in BasicTypesSuccessTest()
85 CHECK_EQ(size, 0) in BasicTypesSuccessTest()
86 CHECK_EQ(buffer_ptr, buffer+num_bytes) in BasicTypesSuccessTest()
90 CHECK_EQ(rc, TPM_RC_SUCCESS); in BasicTypesSuccessTest()
91 CHECK_EQ(size, 0); in BasicTypesSuccessTest()
92 CHECK_EQ(buffer_ptr, buffer+num_bytes); in BasicTypesSuccessTest()
94 CHECK_EQ(value, 12345); in BasicTypesSuccessTest()
102 CHECK_EQ(size, num_bytes-1); in BasicTypesFailureTest()
103 CHECK_EQ(bytes_marshalled, num_bytes); in BasicTypesFailureTest()
[all …]
/external/pcre/pcrecpp/
Dpcre_scanner_unittest.cc51 #define CHECK_EQ(a, b) do { \ macro
79 CHECK_EQ(var, "alpha"); in TestScanner()
80 CHECK_EQ(number, 1); in TestScanner()
81 CHECK_EQ(s.LineNumber(), 3); in TestScanner()
83 CHECK_EQ(comments.size(), 1); in TestScanner()
84 CHECK_EQ(comments[0].as_string(), " // this sets alpha\n"); in TestScanner()
88 CHECK_EQ(var, "bravo"); in TestScanner()
89 CHECK_EQ(number, 2); in TestScanner()
91 CHECK_EQ(comments.size(), 1); in TestScanner()
92 CHECK_EQ(comments[0].as_string(), " // bravo is set here\n"); in TestScanner()
[all …]
Dpcrecpp_unittest.cc67 #define CHECK_EQ(a, b) CHECK(a == b) macro
84 CHECK_EQ(i, 1234); in Timing2()
134 CHECK_EQ(v, 0x ## value); \ in RadixTests()
136 CHECK_EQ(v, 0x ## value); \ in RadixTests()
160 CHECK_EQ(v, 0 ## value); \ in RadixTests()
162 CHECK_EQ(v, 0 ## value); \ in RadixTests()
186 CHECK_EQ(v, value); \ in RadixTests()
188 CHECK_EQ(v, value); \ in RadixTests()
341 CHECK_EQ(one, t->single); in TestReplace()
344 CHECK_EQ(all, t->global); in TestReplace()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_list_test.cc37 CHECK_EQ(l->front(), i1); in CheckList()
41 CHECK_EQ(l->front(), i2); in CheckList()
45 CHECK_EQ(l->front(), i3); in CheckList()
49 CHECK_EQ(l->front(), i4); in CheckList()
53 CHECK_EQ(l->front(), i5); in CheckList()
57 CHECK_EQ(l->front(), i6); in CheckList()
65 CHECK_EQ(static_list.size(), 0); in TEST()
77 CHECK_EQ(l.size(), 0); in TEST()
79 CHECK_EQ(l.size(), 1); in TEST()
80 CHECK_EQ(l.back(), x); in TEST()
[all …]
/external/libmojo/mojo/edk/test/
Dmojo_test_base.cc110 CHECK_EQ(MojoWriteMessage(mp, message.data(), in WriteMessageWithHandles()
126 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in ReadMessageWithHandles()
132 CHECK_EQ(MojoReadMessage(mp, nullptr, &message_size, nullptr, &num_handles, in ReadMessageWithHandles()
135 CHECK_EQ(expected_num_handles, num_handles); in ReadMessageWithHandles()
138 CHECK_EQ(MojoReadMessage(mp, &message[0], &message_size, handles, in ReadMessageWithHandles()
141 CHECK_EQ(message_size, message.size()); in ReadMessageWithHandles()
142 CHECK_EQ(num_handles, expected_num_handles); in ReadMessageWithHandles()
150 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in ReadMessageWithOptionalHandle()
156 CHECK_EQ(MojoReadMessage(mp, nullptr, &message_size, nullptr, &num_handles, in ReadMessageWithOptionalHandle()
164 CHECK_EQ(MojoReadMessage(mp, &message[0], &message_size, handle, in ReadMessageWithOptionalHandle()
[all …]
/external/libmojo/mojo/edk/system/
Dmultiprocess_message_pipe_unittest.cc86 CHECK_EQ(result, MOJO_RESULT_FAILED_PRECONDITION); in DEFINE_TEST_CLIENT_WITH_PIPE()
87 CHECK_EQ(hss.satisfied_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
88 CHECK_EQ(hss.satisfiable_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
97 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], in DEFINE_TEST_CLIENT_WITH_PIPE()
110 CHECK_EQ(MojoWriteMessage(h, write_buffer.data(), in DEFINE_TEST_CLIENT_WITH_PIPE()
139 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], in TEST_F()
148 CHECK_EQ(MojoWriteMessage(h, quitquitquit.data(), in TEST_F()
209 CHECK_EQ(MojoWait(h, MOJO_HANDLE_SIGNAL_READABLE, in DEFINE_TEST_CLIENT_WITH_PIPE()
214 CHECK_EQ(hss.satisfied_signals, in DEFINE_TEST_CLIENT_WITH_PIPE()
216 CHECK_EQ(hss.satisfiable_signals, MOJO_HANDLE_SIGNAL_READABLE | in DEFINE_TEST_CLIENT_WITH_PIPE()
[all …]
Dmessage_pipe_perftest.cc45 CHECK_EQ(MojoWriteMessage(mp, payload_.data(), in WriteWaitThenRead()
50 CHECK_EQ(MojoWait(mp, MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, in WriteWaitThenRead()
54 CHECK_EQ(MojoReadMessage(mp, &read_buffer_[0], &read_buffer_size, nullptr, in WriteWaitThenRead()
57 CHECK_EQ(read_buffer_size, static_cast<uint32_t>(payload_.size())); in WriteWaitThenRead()
61 CHECK_EQ(MojoWriteMessage(mp, "", 0, nullptr, 0, in SendQuitMessage()
110 CHECK_EQ(MojoReadMessage(mp, &buffer[0], in RunPingPongClient()
119 CHECK_EQ(MojoWriteMessage(mp, &buffer[0], in RunPingPongClient()
/external/libbrillo/brillo/
Dasynchronous_signal_handler.cc25 CHECK_EQ(sigemptyset(&signal_mask_), 0) << "Failed to initialize signal mask"; in AsynchronousSignalHandler()
26 CHECK_EQ(sigemptyset(&saved_signal_mask_), 0) in AsynchronousSignalHandler()
38 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &saved_signal_mask_, nullptr)); in ~AsynchronousSignalHandler()
43 CHECK_EQ(kInvalidDescriptor, descriptor_); in Init()
44 CHECK_EQ(0, sigprocmask(SIG_BLOCK, &signal_mask_, &saved_signal_mask_)); in Init()
62 CHECK_EQ(0, sigaddset(&signal_mask_, signal)); in RegisterHandler()
95 CHECK_EQ(0, sigdelset(&signal_mask_, signal)); in ResetSignal()
101 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &saved_signal_mask_, nullptr)); in UpdateSignals()
102 CHECK_EQ(0, sigprocmask(SIG_BLOCK, &signal_mask_, nullptr)); in UpdateSignals()
103 CHECK_EQ(descriptor_, in UpdateSignals()
/external/v8/src/
Dfast-accessor-assembler.cc34 CHECK_EQ(kBuilding, state_); in IntegerConstant()
39 CHECK_EQ(kBuilding, state_); in GetReceiver()
47 CHECK_EQ(kBuilding, state_); in LoadInternalField()
75 CHECK_EQ(kBuilding, state_); in LoadInternalFieldUnchecked()
99 CHECK_EQ(kBuilding, state_); in LoadValue()
106 CHECK_EQ(kBuilding, state_); in LoadObject()
113 CHECK_EQ(kBuilding, state_); in ToSmi()
118 CHECK_EQ(kBuilding, state_); in ReturnValue()
124 CHECK_EQ(kBuilding, state_); in CheckFlagSetOrReturnNull()
137 CHECK_EQ(kBuilding, state_); in CheckNotZeroOrReturnNull()
[all …]
/external/libchrome/sandbox/linux/services/
Dnamespace_sandbox_unittest.cc77 CHECK_EQ(in_pid_ns, in MULTIPROCESS_TEST_MAIN()
79 CHECK_EQ(in_net_ns, in MULTIPROCESS_TEST_MAIN()
82 CHECK_EQ(1, getpid()); in MULTIPROCESS_TEST_MAIN()
96 CHECK_EQ(in_pid_ns, in MULTIPROCESS_TEST_MAIN()
100 CHECK_EQ(1, getpid()); in MULTIPROCESS_TEST_MAIN()
139 CHECK_EQ(0, exit_code); in MULTIPROCESS_TEST_MAIN()
184 CHECK_EQ(1, getpid()); in SANDBOX_TEST()
192 CHECK_EQ(kNormalExitCode, WEXITSTATUS(status)); in SANDBOX_TEST()
206 CHECK_EQ(1, getpid()); in SANDBOX_TEST()
218 CHECK_EQ(NamespaceSandbox::SignalExitCode(SIGTERM), WEXITSTATUS(status)); in SANDBOX_TEST()
[all …]
Dcredentials_unittest.cc38 CHECK_EQ(0, ret); in operator ()()
53 CHECK_EQ(0, stat(".", &current)); in WorkingDirectoryIsRoot()
55 CHECK_EQ(0, stat("..", &parrent)); in WorkingDirectoryIsRoot()
56 CHECK_EQ(current.st_dev, parrent.st_dev); in WorkingDirectoryIsRoot()
57 CHECK_EQ(current.st_ino, parrent.st_ino); in WorkingDirectoryIsRoot()
58 CHECK_EQ(current.st_mode, parrent.st_mode); in WorkingDirectoryIsRoot()
59 CHECK_EQ(current.st_uid, parrent.st_uid); in WorkingDirectoryIsRoot()
60 CHECK_EQ(current.st_gid, parrent.st_gid); in WorkingDirectoryIsRoot()
91 CHECK_EQ(user_ns_supported, moved_to_new_ns); in SANDBOX_TEST()
240 CHECK_EQ(0, cap_compare(expected_cap.get(), actual_cap.get())); in SANDBOX_TEST()
[all …]
/external/v8/src/compiler/
Dverifier.cc112 CHECK_EQ(input_count, node->InputCount()); in Check()
182 CHECK_EQ(0, input_count); in Check()
208 CHECK_EQ(1, count_true); in Check()
209 CHECK_EQ(1, count_false); in Check()
218 CHECK_EQ(IrOpcode::kBranch, in Check()
265 CHECK_EQ(1, count_default); in Check()
266 CHECK_EQ(node->op()->ControlOutputCount(), count_case + count_default); in Check()
273 CHECK_EQ(IrOpcode::kSwitch, in Check()
280 CHECK_EQ(control_count, input_count); in Check()
299 CHECK_EQ(IrOpcode::kEnd, use->opcode()); in Check()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_procmaps_linux.cc44 CHECK_EQ(*current_++, '-'); in Next()
46 CHECK_EQ(*current_++, ' '); in Next()
60 CHECK_EQ(*current_++, ' '); in Next()
62 CHECK_EQ(*current_++, ' '); in Next()
64 CHECK_EQ(*current_++, ':'); in Next()
66 CHECK_EQ(*current_++, ' '); in Next()
Dsanitizer_thread_registry.cc49 CHECK_EQ(false, detached); in SetJoined()
50 CHECK_EQ(ThreadStatusFinished, status); in SetJoined()
146 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread()
150 CHECK_EQ(alive_threads_, max_alive_threads_); in CreateThread()
205 CHECK_EQ(ThreadStatusRunning, tctx->status); in SetThreadName()
261 CHECK_EQ(ThreadStatusRunning, tctx->status); in FinishThread()
275 CHECK_EQ(ThreadStatusCreated, tctx->status); in StartThread()
287 CHECK_EQ(tctx->status, ThreadStatusDead); in QuarantinePush()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util_posix.cc150 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init()
153 CHECK_EQ(pthread_spin_init((pthread_spinlock_t*)mtx_, 0), 0); in Init()
156 CHECK_EQ(__interceptor_pthread_rwlock_init((pthread_rwlock_t*)mtx_, 0), 0); in Init()
173 CHECK_EQ(__interceptor_pthread_mutex_destroy((pthread_mutex_t*)mtx_), 0); in Destroy()
176 CHECK_EQ(pthread_spin_destroy((pthread_spinlock_t*)mtx_), 0); in Destroy()
179 CHECK_EQ(__interceptor_pthread_rwlock_destroy((pthread_rwlock_t*)mtx_), 0); in Destroy()
185 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock()
188 CHECK_EQ(pthread_spin_lock((pthread_spinlock_t*)mtx_), 0); in Lock()
191 CHECK_EQ(__interceptor_pthread_rwlock_wrlock((pthread_rwlock_t*)mtx_), 0); in Lock()
210 CHECK_EQ(__interceptor_pthread_mutex_unlock((pthread_mutex_t*)mtx_), 0); in Unlock()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_proc.cc35 CHECK_EQ(proc->thr, nullptr); in ProcDestroy()
48 CHECK_EQ(thr->proc1, nullptr); in ProcWire()
49 CHECK_EQ(proc->thr, nullptr); in ProcWire()
55 CHECK_EQ(thr->proc1, proc); in ProcUnwire()
56 CHECK_EQ(proc->thr, thr); in ProcUnwire()
Dtsan_interface_java.cc72 CHECK_EQ(jctx, 0); in __tsan_java_init()
75 CHECK_EQ(heap_begin % kHeapAlignment, 0); in __tsan_java_init()
76 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init()
96 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_alloc()
97 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_alloc()
109 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_free()
110 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_free()
122 CHECK_EQ(src % kHeapAlignment, 0); in __tsan_java_move()
123 CHECK_EQ(dst % kHeapAlignment, 0); in __tsan_java_move()
124 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_move()
/external/libchrome/sandbox/linux/bpf_dsl/
Dcodegen.cc93 CHECK_EQ(kNullNode, jf) << "Non-branch instructions shouldn't provide jf"; in AppendInstruction()
95 CHECK_EQ(kNullNode, jt) << "Return instructions shouldn't provide jt"; in AppendInstruction()
101 CHECK_EQ(0U, Offset(jt)) << "ICE: Failed to setup next instruction"; in AppendInstruction()
128 CHECK_EQ(0U, jt); in Append()
129 CHECK_EQ(0U, jf); in Append()
133 CHECK_EQ(program_.size(), equivalent_.size()); in Append()
/external/libmojo/mojo/public/cpp/system/
Dplatform_handle.cc37 CHECK_EQ(result, MOJO_RESULT_OK); in WrapPlatformFile()
53 CHECK_EQ(platform_handle.type, kPlatformFileHandleType); in UnwrapPlatformFile()
85 CHECK_EQ(result, MOJO_RESULT_OK); in WrapSharedMemoryHandle()
111 CHECK_EQ(platform_handle.type, MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT); in UnwrapSharedMemoryHandle()
116 CHECK_EQ(platform_handle.type, MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR); in UnwrapSharedMemoryHandle()
120 CHECK_EQ(platform_handle.type, MOJO_PLATFORM_HANDLE_TYPE_WINDOWS_HANDLE); in UnwrapSharedMemoryHandle()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc67 CHECK_EQ((uptr)data % kShadowSize, 0); in TEST()
69 CHECK_EQ(s0 % kShadowSize, 0); in TEST()
71 CHECK_EQ(s0, MemToShadow((uptr)&data[i])); in TEST()
73 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
75 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
/external/compiler-rt/lib/msan/
Dmsan_linux.cc83 CHECK_EQ(prev_end, start); in CheckMemoryLayoutSanity()
91 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
96 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
101 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
182 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit()
193 CHECK_EQ(0, msan_current_thread); in SetCurrentThread()
204 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()

12345678