Home
last modified time | relevance | path

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

12345678910>>...32

/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_list_test.cpp36 CHECK_EQ(l->front(), i1); in CheckList()
40 CHECK_EQ(l->front(), i2); in CheckList()
44 CHECK_EQ(l->front(), i3); in CheckList()
48 CHECK_EQ(l->front(), i4); in CheckList()
52 CHECK_EQ(l->front(), i5); in CheckList()
56 CHECK_EQ(l->front(), i6); in CheckList()
64 CHECK_EQ(static_list.size(), 0); in TEST()
76 CHECK_EQ(l.size(), 0); in TEST()
78 CHECK_EQ(l.size(), 1); in TEST()
79 CHECK_EQ(l.back(), x); in TEST()
[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/tensorflow/tensorflow/core/lib/gtl/
Dmanual_constructor_test.cc48 CHECK_EQ(sizeof(ManualConstructor<Test1>), sizeof(Test1)); in TEST()
49 CHECK_EQ(sizeof(ManualConstructor<Test2>), sizeof(Test2)); in TEST()
50 CHECK_EQ(sizeof(ManualConstructor<Test3>), sizeof(Test3)); in TEST()
51 CHECK_EQ(sizeof(ManualConstructor<Test4>), sizeof(Test4)); in TEST()
52 CHECK_EQ(sizeof(ManualConstructor<Test5>), sizeof(Test5)); in TEST()
53 CHECK_EQ(sizeof(ManualConstructor<Test9>), sizeof(Test9)); in TEST()
54 CHECK_EQ(sizeof(ManualConstructor<Test15>), sizeof(Test15)); in TEST()
56 CHECK_EQ(constructor_count_, 0); in TEST()
58 CHECK_EQ(sizeof(mt), 4); in TEST()
59 CHECK_EQ(constructor_count_, 0); in TEST()
[all …]
/external/libbrillo/brillo/
Dasynchronous_signal_handler.cc18 CHECK_EQ(sigemptyset(&signal_mask_), 0) << "Failed to initialize signal mask"; in AsynchronousSignalHandler()
19 CHECK_EQ(sigemptyset(&saved_signal_mask_), 0) in AsynchronousSignalHandler()
31 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &saved_signal_mask_, nullptr)); in ~AsynchronousSignalHandler()
39 CHECK_EQ(0, sigprocmask(SIG_BLOCK, &signal_mask_, &saved_signal_mask_)); in Init()
54 CHECK_EQ(0, sigaddset(&signal_mask_, signal)); in RegisterHandler()
63 CHECK_EQ(0, sigdelset(&signal_mask_, signal)); in UnregisterHandler()
91 CHECK_EQ(0, sigemptyset(&mask)); in UpdateSignals()
94 CHECK_EQ(0, sigaddset(&mask, i)); in UpdateSignals()
98 CHECK_EQ(0, sigorset(&mask, &signal_mask_, &saved_signal_mask_)); in UpdateSignals()
100 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &mask, nullptr)); in UpdateSignals()
[all …]
/external/tensorflow/tensorflow/c/eager/
Dc_api_test_util.cc37 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
50 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
62 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
74 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestScalarTensorHandle()
88 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in DoubleTestMatrixTensorHandle()
102 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestMatrixTensorHandle()
116 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestMatrixTensorHandleWithInput()
129 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestTensorHandleWithDimsFloat()
142 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestTensorHandleWithDimsInt()
158 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in TestMatrixTensorHandle100x100()
[all …]
Dc_api_test.cc57 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp()
69 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_InitOp()
81 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
86 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
92 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
94 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
96 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
98 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
110 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute()
123 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); in BM_Execute_Identity()
[all …]
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Didentify_dilated_conv.cc68 CHECK_EQ(conv_op->outputs.size(), 1); in ResolveDilatedConv()
80 CHECK_EQ(post_conv_op->inputs.size(), 1); in ResolveDilatedConv()
81 CHECK_EQ(post_conv_op->outputs.size(), 1); in ResolveDilatedConv()
91 CHECK_EQ(pad_op->inputs.size(), 2); in ResolveDilatedConv()
92 CHECK_EQ(pad_op->outputs.size(), 1); in ResolveDilatedConv()
113 CHECK_EQ(bts_op->inputs.size(), 3); in ResolveDilatedConv()
114 CHECK_EQ(bts_op->outputs.size(), 1); in ResolveDilatedConv()
122 CHECK_EQ(bias_add_op->inputs.size(), 2); in ResolveDilatedConv()
123 CHECK_EQ(bias_add_op->outputs.size(), 1); in ResolveDilatedConv()
185 CHECK_EQ(stb_op->outputs.size(), 1); in Run()
[all …]
Dpropagate_array_data_types.cc110 CHECK_EQ(op->outputs.size(), 1); in Run()
117 CHECK_EQ(op->outputs.size(), 1); in Run()
124 CHECK_EQ(op->outputs.size(), 1); in Run()
141 CHECK_EQ(op->outputs.size(), 1); in Run()
151 CHECK_EQ(op->outputs.size(), 1); in Run()
157 CHECK_EQ(op->inputs.size(), 2); in Run()
158 CHECK_EQ(op->outputs.size(), 2); in Run()
186 CHECK_EQ(op->inputs.size(), 3); in Run()
197 CHECK_EQ(op->inputs.size(), 4); in Run()
206 CHECK_EQ(op->inputs.size(), 2); in Run()
[all …]
Dpropagate_fixed_sizes.cc118 CHECK_EQ(dim_x, dim_y) << "Dimensions must match"; in ComputeBinaryOperatorOutputSize()
142 CHECK_EQ(weights_shape.dimensions_count(), 4); in ProcessConvOperator()
153 CHECK_EQ(output_array.shape().dimensions_count(), 4); in ProcessConvOperator()
204 CHECK_EQ(weights_shape.dimensions_count(), 4) in ProcessTransposeConvOperator()
231 CHECK_EQ(input_shape.dimensions_count(), 4) in ProcessTransposeConvOperator()
235 CHECK_EQ(input_shape.dims(3), weights_shape.dims(3)) in ProcessTransposeConvOperator()
261 CHECK_EQ(input_shape.dimensions_count(), 4); in ProcessDepthwiseConvOperator()
269 CHECK_EQ(weights_shape.dimensions_count(), 4); in ProcessDepthwiseConvOperator()
284 CHECK_EQ(output_depth, input_depth * op->depth_multiplier) in ProcessDepthwiseConvOperator()
303 CHECK_EQ(input_shape.dimensions_count(), 4); in ProcessDepthToSpaceOperator()
[all …]
Dresolve_constant_range.cc39 CHECK_EQ(std::floor((limit - start) / delta), buffer.data.size()); in FillRangeOutput()
40 CHECK_EQ(buffer.data.size(), output_array->shape().dims()[0]); in FillRangeOutput()
54 CHECK_EQ(op->inputs.size(), 3); in Run()
78 CHECK_EQ(op->outputs.size(), 1); in Run()
85 CHECK_EQ(RequiredBufferSizeForShape(start_array.shape()), 1) in Run()
87 CHECK_EQ(RequiredBufferSizeForShape(limit_array.shape()), 1) in Run()
89 CHECK_EQ(RequiredBufferSizeForShape(delta_array.shape()), 1) in Run()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_aot_test_helper.cc101 CHECK_EQ(result->result_buffer_index(), 1); in main()
102 CHECK_EQ(result->buffer_infos().size(), 3); in main()
104 CHECK_EQ(result->buffer_infos()[1].size(), sizeof(float)); // result buffer in main()
108 CHECK_EQ(result->object_file_data()[0], 0x7F); in main()
109 CHECK_EQ(result->object_file_data()[1], 'E'); in main()
110 CHECK_EQ(result->object_file_data()[2], 'L'); in main()
111 CHECK_EQ(result->object_file_data()[3], 'F'); in main()
113 CHECK_EQ(result->object_file_data()[4], triple.isArch32Bit() ? 1 : 2); in main()
115 CHECK_EQ(result->object_file_data()[5], triple.isLittleEndian() ? 1 : 2); in main()
117 CHECK_EQ(result->object_file_data()[6], 1); in main()
/external/libchrome/mojo/core/
Dmultiprocess_message_pipe_unittest.cc142 CHECK_EQ(result, MOJO_RESULT_FAILED_PRECONDITION); in DEFINE_TEST_CLIENT_WITH_PIPE()
143 CHECK_EQ(hss.satisfied_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
144 CHECK_EQ(hss.satisfiable_signals, MOJO_HANDLE_SIGNAL_PEER_CLOSED); in DEFINE_TEST_CLIENT_WITH_PIPE()
153 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], &read_buffer_size, nullptr, 0, in DEFINE_TEST_CLIENT_WITH_PIPE()
165 CHECK_EQ(MojoWriteMessage(h, write_buffer.data(), in DEFINE_TEST_CLIENT_WITH_PIPE()
193 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], &read_buffer_size, nullptr, 0, in TEST_P()
201 CHECK_EQ(MojoWriteMessage(h, quitquitquit.data(), in TEST_P()
262 CHECK_EQ(WaitForSignals(h, MOJO_HANDLE_SIGNAL_READABLE, &hss), in DEFINE_TEST_CLIENT_WITH_PIPE()
274 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], &num_bytes, &handles[0], in DEFINE_TEST_CLIENT_WITH_PIPE()
278 CHECK_EQ(read_buffer, std::string("go 1")); in DEFINE_TEST_CLIENT_WITH_PIPE()
[all …]
Dmessage_pipe_perftest.cc44 CHECK_EQ( in WriteWaitThenRead()
49 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE, &hss), in WriteWaitThenRead()
51 CHECK_EQ(ReadMessageRaw(MessagePipeHandle(mp), &read_buffer_, nullptr, in WriteWaitThenRead()
54 CHECK_EQ(read_buffer_.size(), payload_.size()); in WriteWaitThenRead()
58 CHECK_EQ(WriteMessageRaw(MessagePipeHandle(mp), "", 0, nullptr, 0, in SendQuitMessage()
104 CHECK_EQ(ReadMessageRaw(MessagePipeHandle(mp), &buffer, nullptr, in RunPingPongClient()
112 CHECK_EQ( in RunPingPongClient()
/external/tensorflow/tensorflow/core/util/
Dincremental_barrier_test.cc72 CHECK_EQ(counter.GetCount(), 0); in TEST()
80 CHECK_EQ(counter.GetCount(), 0); in TEST()
83 CHECK_EQ(counter.GetCount(), 0); in TEST()
85 CHECK_EQ(counter.GetCount(), 0); in TEST()
87 CHECK_EQ(counter.GetCount(), 1); in TEST()
100 CHECK_EQ(counter.GetCount(), 0); in TEST()
114 CHECK_EQ(counter.GetCount(), 0); in TEST()
117 CHECK_EQ(schedule_count.load(std::memory_order_relaxed), 100); in TEST()
118 CHECK_EQ(counter.GetCount(), 1); in TEST()
/external/libchrome/mojo/core/test/
Dmojo_test_base.cc112 CHECK_EQ(WriteMessageRaw(MessagePipeHandle(mp), message.data(), in WriteMessageWithHandles()
128 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessageWithHandles()
132 CHECK_EQ(MOJO_RESULT_OK, in ReadMessageWithHandles()
135 CHECK_EQ(expected_num_handles, handles.size()); in ReadMessageWithHandles()
145 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessageWithOptionalHandle()
149 CHECK_EQ(MOJO_RESULT_OK, in ReadMessageWithOptionalHandle()
170 CHECK_EQ(WaitForSignals(mp, MOJO_HANDLE_SIGNAL_READABLE), MOJO_RESULT_OK); in ReadMessage()
174 CHECK_EQ(MOJO_RESULT_OK, in ReadMessage()
177 CHECK_EQ(0u, handles.size()); in ReadMessage()
178 CHECK_EQ(num_bytes, bytes.size()); in ReadMessage()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dparse_flags_from_env_test.cc58 CHECK_EQ(*pargc, 1) << msg; in TestParseFlagsFromEnv()
61 CHECK_EQ(argv_second[1], nullptr) << msg; in TestParseFlagsFromEnv()
64 CHECK_EQ(with_value, "a_value") << msg; in TestParseFlagsFromEnv()
65 CHECK_EQ(embedded_quotes, "single'double\"") << msg; in TestParseFlagsFromEnv()
66 CHECK_EQ(single_quoted, "single quoted \\\\ \n \"") << msg; in TestParseFlagsFromEnv()
67 CHECK_EQ(double_quoted, "double quoted \\ \n '\"") << msg; in TestParseFlagsFromEnv()
105 CHECK_EQ(ferror(fp), 0) << "writes failed to " << tmp_file; in TEST()
150 CHECK_EQ(child_status, 0) << "test " << i << "\nstdout\n" in TEST()
156 CHECK_EQ(stdout_str, test[i].expected_value) << "test " << i; in TEST()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_fuchsia.cpp130 CHECK_EQ(vmo_, ZX_HANDLE_INVALID); in Setup()
131 CHECK_EQ(array_, nullptr); in Setup()
137 CHECK_EQ(status, ZX_OK); in Setup()
147 CHECK_EQ(status, ZX_OK); in Setup()
157 CHECK_EQ(status, ZX_OK); in Setup()
179 CHECK_EQ(status, ZX_OK); in Setup()
183 CHECK_EQ(status, ZX_OK); in Setup()
197 CHECK_EQ(enabled, common_flags()->coverage); in InitializeCoverage()
198 CHECK_EQ(dir, common_flags()->coverage_dir); in InitializeCoverage()
Dsanitizer_procmaps_linux.cpp42 CHECK_EQ(*data_.current++, '-'); in Next()
44 CHECK_EQ(*data_.current++, ' '); in Next()
54 CHECK_EQ(*data_.current++, ' '); in Next()
56 CHECK_EQ(*data_.current++, ' '); in Next()
58 CHECK_EQ(*data_.current++, ':'); in Next()
60 CHECK_EQ(*data_.current++, ' '); in Next()
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem_unittest.cc322 CHECK_EQ(cpdata1, cpdata2); in TEST()
331 CHECK_EQ(cptest, cpdata1); in TEST()
334 CHECK_EQ(cptest, cpdata2); in TEST()
348 CHECK_EQ(w, in_w); in TEST()
349 CHECK_EQ(h, in_h); in TEST()
350 CHECK_EQ(c, 3); in TEST()
368 CHECK_EQ(w, in_w); in TEST()
369 CHECK_EQ(h, in_h); in TEST()
370 CHECK_EQ(c, 3); in TEST()
375 CHECK_EQ(totalerr, 0); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_creation_utils_test.cc77 CHECK_EQ(result_literal, LiteralUtil::CreateR1<int32>({3, 4})); in TEST_F()
98 CHECK_EQ(result_literal, in TEST_F()
119 CHECK_EQ(result_literal, LiteralUtil::CreateR2<int32>({{9, 10}})); in TEST_F()
138 CHECK_EQ(result_literal, LiteralUtil::CreateR3<int32>({{{9, 10}}})); in TEST_F()
157 CHECK_EQ(result_literal, LiteralUtil::CreateR2<int32>({{9}})); in TEST_F()
177 CHECK_EQ(result_literal, in TEST_F()
198 CHECK_EQ(result_literal, LiteralUtil::CreateR1<int32>({0, 0, 0, 3, 4, 0})); in TEST_F()
217 CHECK_EQ(result_literal, LiteralUtil::CreateR2<int32>({{0, 0}, {0, 0}})); in TEST_F()
236 CHECK_EQ(result_literal, in TEST_F()
259 CHECK_EQ(result_literal, in TEST_F()
[all …]
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util_posix.cpp106 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init()
109 CHECK_EQ(pthread_spin_init((pthread_spinlock_t*)mtx_, 0), 0); in Init()
112 CHECK_EQ(__interceptor_pthread_rwlock_init((pthread_rwlock_t*)mtx_, 0), 0); in Init()
129 CHECK_EQ(__interceptor_pthread_mutex_destroy((pthread_mutex_t*)mtx_), 0); in Destroy()
132 CHECK_EQ(pthread_spin_destroy((pthread_spinlock_t*)mtx_), 0); in Destroy()
135 CHECK_EQ(__interceptor_pthread_rwlock_destroy((pthread_rwlock_t*)mtx_), 0); in Destroy()
141 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock()
144 CHECK_EQ(pthread_spin_lock((pthread_spinlock_t*)mtx_), 0); in Lock()
147 CHECK_EQ(__interceptor_pthread_rwlock_wrlock((pthread_rwlock_t*)mtx_), 0); in Lock()
166 CHECK_EQ(__interceptor_pthread_mutex_unlock((pthread_mutex_t*)mtx_), 0); in Unlock()
[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()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_proc.cpp34 CHECK_EQ(proc->thr, nullptr); in ProcDestroy()
47 CHECK_EQ(thr->proc1, nullptr); in ProcWire()
48 CHECK_EQ(proc->thr, nullptr); in ProcWire()
54 CHECK_EQ(thr->proc1, proc); in ProcUnwire()
55 CHECK_EQ(proc->thr, thr); in ProcUnwire()
Dtsan_interface_java.cpp71 CHECK_EQ(jctx, 0); in __tsan_java_init()
74 CHECK_EQ(heap_begin % kHeapAlignment, 0); in __tsan_java_init()
75 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init()
95 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_alloc()
96 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_alloc()
108 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_free()
109 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_free()
121 CHECK_EQ(src % kHeapAlignment, 0); in __tsan_java_move()
122 CHECK_EQ(dst % kHeapAlignment, 0); in __tsan_java_move()
123 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_move()
[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()

12345678910>>...32