Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 25 of 872) sorted by relevance

12345678910>>...35

/external/clang/unittests/AST/
DCommentLexer.cpp87 ASSERT_EQ(0U, Toks.size()); in TEST_F()
100 ASSERT_EQ(1U, Toks.size()); in TEST_F()
102 ASSERT_EQ(tok::newline, Toks[0].getKind()); in TEST_F()
116 ASSERT_EQ(2U, Toks.size()); in TEST_F()
118 ASSERT_EQ(tok::newline, Toks[0].getKind()); in TEST_F()
119 ASSERT_EQ(tok::newline, Toks[1].getKind()); in TEST_F()
135 ASSERT_EQ(2U, Toks.size()); in TEST_F()
137 ASSERT_EQ(tok::text, Toks[0].getKind()); in TEST_F()
138 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
140 ASSERT_EQ(tok::newline, Toks[1].getKind()); in TEST_F()
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlsyntaxparser_unittest.cpp35 ASSERT_EQ(FX_XmlSyntaxResult::ElementOpen, parser.DoSyntaxParse()); in TEST()
36 ASSERT_EQ(FX_XmlSyntaxResult::TagName, parser.DoSyntaxParse()); in TEST()
37 ASSERT_EQ(L"script", parser.GetTagName()); in TEST()
39 ASSERT_EQ(FX_XmlSyntaxResult::AttriName, parser.DoSyntaxParse()); in TEST()
40 ASSERT_EQ(L"contentType", parser.GetAttributeName()); in TEST()
41 ASSERT_EQ(FX_XmlSyntaxResult::AttriValue, parser.DoSyntaxParse()); in TEST()
42 ASSERT_EQ(L"application/x-javascript", parser.GetAttributeValue()); in TEST()
44 ASSERT_EQ(FX_XmlSyntaxResult::ElementBreak, parser.DoSyntaxParse()); in TEST()
45 ASSERT_EQ(FX_XmlSyntaxResult::Text, parser.DoSyntaxParse()); in TEST()
46 ASSERT_EQ(L"\n ", parser.GetTextData()); in TEST()
[all …]
/external/libmojo/mojo/edk/system/
Dcore_unittest.cc47 ASSERT_EQ(0u, info.GetCtorCallCount()); in TEST_F()
49 ASSERT_EQ(1u, info.GetCtorCallCount()); in TEST_F()
52 ASSERT_EQ(0u, info.GetWriteMessageCallCount()); in TEST_F()
53 ASSERT_EQ(MOJO_RESULT_OK, in TEST_F()
56 ASSERT_EQ(1u, info.GetWriteMessageCallCount()); in TEST_F()
58 ASSERT_EQ(0u, info.GetReadMessageCallCount()); in TEST_F()
60 ASSERT_EQ( in TEST_F()
64 ASSERT_EQ(1u, info.GetReadMessageCallCount()); in TEST_F()
65 ASSERT_EQ(MOJO_RESULT_OK, in TEST_F()
68 ASSERT_EQ(2u, info.GetReadMessageCallCount()); in TEST_F()
[all …]
Ddata_pipe_unittest.cc148 ASSERT_EQ(MOJO_RESULT_OK, Create(&options)); in TEST_F()
160 ASSERT_EQ(MOJO_RESULT_OK, WriteData(&elements[0], &num_bytes)); in TEST_F()
164 ASSERT_EQ(MOJO_RESULT_OK, in TEST_F()
172 ASSERT_EQ(MOJO_RESULT_OK, ReadData(&elements[0], &num_bytes)); in TEST_F()
173 ASSERT_EQ(static_cast<uint32_t>(2u * sizeof(elements[0])), num_bytes); in TEST_F()
174 ASSERT_EQ(elements[0], 123); in TEST_F()
175 ASSERT_EQ(elements[1], 456); in TEST_F()
203 ASSERT_EQ(MOJO_RESULT_OK, in TEST_F()
205 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(producer_handle)); in TEST_F()
206 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(consumer_handle)); in TEST_F()
[all …]
Dmessage_pipe_unittest.cc61 ASSERT_EQ(MOJO_RESULT_OK, in TEST_F()
86 ASSERT_EQ(MOJO_RESULT_SHOULD_WAIT, ReadMessage(pipe0_, buffer, &buffer_size)); in TEST_F()
87 ASSERT_EQ(kBufferSize, buffer_size); in TEST_F()
88 ASSERT_EQ(123, buffer[0]); in TEST_F()
89 ASSERT_EQ(456, buffer[1]); in TEST_F()
95 ASSERT_EQ(MOJO_RESULT_SHOULD_WAIT, ReadMessage(pipe1_, buffer, &buffer_size)); in TEST_F()
100 ASSERT_EQ(MOJO_RESULT_OK, WriteMessage(pipe1_, buffer, sizeof(buffer[0]))); in TEST_F()
103 ASSERT_EQ(MOJO_RESULT_OK, MojoWait(pipe0_, MOJO_HANDLE_SIGNAL_READABLE, in TEST_F()
110 ASSERT_EQ(MOJO_RESULT_OK, ReadMessage(pipe0_, buffer, &buffer_size)); in TEST_F()
111 ASSERT_EQ(static_cast<uint32_t>(sizeof(buffer[0])), buffer_size); in TEST_F()
[all …]
/external/libchrome/base/strings/
Dstring_piece_unittest.cc153 ASSERT_EQ(a[6], static_cast<typename TypeParam::value_type>('g')); in TYPED_TEST()
154 ASSERT_EQ(b[0], static_cast<typename TypeParam::value_type>('a')); in TYPED_TEST()
155 ASSERT_EQ(c[2], static_cast<typename TypeParam::value_type>('z')); in TYPED_TEST()
156 ASSERT_EQ(f[3], static_cast<typename TypeParam::value_type>('\0')); in TYPED_TEST()
157 ASSERT_EQ(f[5], static_cast<typename TypeParam::value_type>('5')); in TYPED_TEST()
159 ASSERT_EQ(*d.data(), static_cast<typename TypeParam::value_type>('f')); in TYPED_TEST()
160 ASSERT_EQ(d.data()[5], static_cast<typename TypeParam::value_type>('r')); in TYPED_TEST()
163 ASSERT_EQ(*a.begin(), static_cast<typename TypeParam::value_type>('a')); in TYPED_TEST()
164 ASSERT_EQ(*(b.begin() + 2), static_cast<typename TypeParam::value_type>('c')); in TYPED_TEST()
165 ASSERT_EQ(*(c.end() - 1), static_cast<typename TypeParam::value_type>('z')); in TYPED_TEST()
[all …]
/external/google-breakpad/src/common/linux/
Dlinux_libc_support_unittest.cc42 ASSERT_EQ(strlen(test_data[i]), my_strlen(test_data[i])); in TEST()
67 ASSERT_EQ(my_strcmp(test_data[i*2], test_data[i*2 + 1]), libc_result); in TEST()
81 ASSERT_EQ(result, 0); in TEST()
83 ASSERT_EQ(result, 1); in TEST()
85 ASSERT_EQ(result, 12); in TEST()
87 ASSERT_EQ(result, 123); in TEST()
89 ASSERT_EQ(result, 123); in TEST()
93 ASSERT_EQ(my_uint_len(0), 1U); in TEST()
94 ASSERT_EQ(my_uint_len(2), 1U); in TEST()
95 ASSERT_EQ(my_uint_len(5), 1U); in TEST()
[all …]
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dheap_test.cc36 ASSERT_EQ(1.0, k); in TEST()
37 ASSERT_EQ(1, d); in TEST()
39 ASSERT_EQ(2.0, k); in TEST()
40 ASSERT_EQ(2, d); in TEST()
44 ASSERT_EQ(3.0, k); in TEST()
45 ASSERT_EQ(3, d); in TEST()
47 ASSERT_EQ(4.0, k); in TEST()
48 ASSERT_EQ(4, d); in TEST()
50 ASSERT_EQ(5.0, k); in TEST()
51 ASSERT_EQ(5, d); in TEST()
[all …]
/external/google-breakpad/src/processor/
Dpathname_stripper_unittest.cc41 #define ASSERT_EQ(e1, e2) ASSERT_TRUE((e1) == (e2)) macro
48 ASSERT_EQ(PathnameStripper::File("/dir/file"), "file"); in RunTests()
49 ASSERT_EQ(PathnameStripper::File("\\dir\\file"), "file"); in RunTests()
50 ASSERT_EQ(PathnameStripper::File("/dir\\file"), "file"); in RunTests()
51 ASSERT_EQ(PathnameStripper::File("\\dir/file"), "file"); in RunTests()
52 ASSERT_EQ(PathnameStripper::File("dir/file"), "file"); in RunTests()
53 ASSERT_EQ(PathnameStripper::File("dir\\file"), "file"); in RunTests()
54 ASSERT_EQ(PathnameStripper::File("dir/\\file"), "file"); in RunTests()
55 ASSERT_EQ(PathnameStripper::File("dir\\/file"), "file"); in RunTests()
56 ASSERT_EQ(PathnameStripper::File("file"), "file"); in RunTests()
[all …]
Dmicrodump_processor_unittest.cc99 ASSERT_EQ(google_breakpad::PROCESS_OK, result); in AnalyzeDump()
101 ASSERT_EQ(0, state->requesting_thread()); in AnalyzeDump()
102 ASSERT_EQ(1U, state->threads()->size()); in AnalyzeDump()
104 ASSERT_EQ(2, state->system_info()->cpu_count); in AnalyzeDump()
105 ASSERT_EQ("android", state->system_info()->os_short); in AnalyzeDump()
106 ASSERT_EQ("Android", state->system_info()->os); in AnalyzeDump()
116 ASSERT_EQ(google_breakpad::PROCESS_ERROR_MINIDUMP_NOT_FOUND, result); in TEST_F()
123 ASSERT_EQ(google_breakpad::PROCESS_ERROR_NO_THREAD_LIST, result); in TEST_F()
130 ASSERT_EQ(8U, state.modules()->module_count()); in TEST_F()
131 ASSERT_EQ("aarch64", state.system_info()->cpu); in TEST_F()
[all …]
Dexploitability_unittest.cc75 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
77 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
79 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
81 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
83 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
85 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
87 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
89 ASSERT_EQ(google_breakpad::EXPLOITABILITY_HIGH, in TEST()
91 ASSERT_EQ(google_breakpad::EXPLOITABILITY_NONE, in TEST()
93 ASSERT_EQ(google_breakpad::EXPLOITABILITY_NONE, in TEST()
[all …]
Dstackwalker_address_list_unittest.cc108 ASSERT_EQ(arraysize(kDummyFrames), frames->size()); in CheckCallStack()
110 ASSERT_EQ(kDummyFrames[i], frames->at(i)->instruction); in CheckCallStack()
111 ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); in CheckCallStack()
113 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(0)->module); in CheckCallStack()
114 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module); in CheckCallStack()
115 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(2)->module); in CheckCallStack()
116 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(3)->module); in CheckCallStack()
117 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(4)->module); in CheckCallStack()
140 ASSERT_EQ(2U, modules_without_symbols.size()); in TEST_F()
141 ASSERT_EQ("module2", modules_without_symbols[0]->debug_file()); in TEST_F()
[all …]
/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp80 ASSERT_EQ(StringRef("foo"), I->Name); in TEST_P()
81 ASSERT_EQ(0x1234U, I->Hash); in TEST_P()
82 ASSERT_EQ(4U, I->Counts.size()); in TEST_P()
83 ASSERT_EQ(1U, I->Counts[0]); in TEST_P()
84 ASSERT_EQ(2U, I->Counts[1]); in TEST_P()
85 ASSERT_EQ(3U, I->Counts[2]); in TEST_P()
86 ASSERT_EQ(4U, I->Counts[3]); in TEST_P()
100 ASSERT_EQ(2U, R->Counts.size()); in TEST_P()
101 ASSERT_EQ(1U, R->Counts[0]); in TEST_P()
102 ASSERT_EQ(2U, R->Counts[1]); in TEST_P()
[all …]
/external/libchrome/base/trace_event/
Dheap_profiler_stack_frame_deduplicator_unittest.cc35 ASSERT_EQ(2, dedup->Insert(std::begin(bt), std::end(bt))); in TEST()
38 ASSERT_EQ(kBrowserMain, (iter + 0)->frame); in TEST()
39 ASSERT_EQ(-1, (iter + 0)->parent_frame_index); in TEST()
41 ASSERT_EQ(kCreateWidget, (iter + 1)->frame); in TEST()
42 ASSERT_EQ(0, (iter + 1)->parent_frame_index); in TEST()
44 ASSERT_EQ(kMalloc, (iter + 2)->frame); in TEST()
45 ASSERT_EQ(1, (iter + 2)->parent_frame_index); in TEST()
47 ASSERT_EQ(iter + 3, dedup->end()); in TEST()
64 ASSERT_EQ(2, dedup->Insert(std::begin(bt), std::end(bt))); in TEST()
67 ASSERT_EQ(kBrowserMain, (iter + 0)->frame); in TEST()
[all …]
/external/minijail/
Dutil_unittest.cc21 ASSERT_EQ("foo", std::string(strip(str))); in TEST()
26 ASSERT_EQ(nullptr, tokenize(nullptr, nullptr)); in TEST()
27 ASSERT_EQ(nullptr, tokenize(nullptr, "")); in TEST()
28 ASSERT_EQ(nullptr, tokenize(nullptr, ",")); in TEST()
31 ASSERT_EQ(nullptr, tokenize(&p, nullptr)); in TEST()
38 ASSERT_EQ(str, tokenize(&p, nullptr)); in TEST()
39 ASSERT_EQ(nullptr, p); in TEST()
40 ASSERT_EQ(str, std::string("a,b,c")); in TEST()
43 ASSERT_EQ(str, tokenize(&p, "")); in TEST()
44 ASSERT_EQ(nullptr, p); in TEST()
[all …]
/external/adhd/cras/src/tests/
Dcras_dsp_pipeline_unittest.cc266 ASSERT_EQ(0, cras_dsp_pipeline_load(p)); in TEST_F()
268 ASSERT_EQ(2, num_modules); in TEST_F()
274 ASSERT_EQ(1, cras_dsp_pipeline_get_num_input_channels(p)); in TEST_F()
275 ASSERT_EQ(0, cras_dsp_pipeline_instantiate(p, 48000)); in TEST_F()
282 ASSERT_EQ(3, d1->nr_ports); in TEST_F()
283 ASSERT_EQ(PORT_OUTPUT, d1->port_dir[0]); in TEST_F()
284 ASSERT_EQ(PORT_OUTPUT, d1->port_dir[1]); in TEST_F()
285 ASSERT_EQ(PORT_INPUT, d1->port_dir[2]); in TEST_F()
286 ASSERT_EQ(1, d1->instantiate_called); in TEST_F()
287 ASSERT_EQ(1, d1->get_delay_called); in TEST_F()
[all …]
Da2dp_info_unittest.cc73 ASSERT_EQ(1, cras_sbc_codec_create_called); in TEST()
74 ASSERT_EQ(SBC_FREQ_48000, codec_create_freq_val); in TEST()
75 ASSERT_EQ(SBC_MODE_JOINT_STEREO, codec_create_mode_val); in TEST()
76 ASSERT_EQ(SBC_AM_LOUDNESS, codec_create_alloc_val); in TEST()
77 ASSERT_EQ(SBC_SB_8, codec_create_subbands_val); in TEST()
78 ASSERT_EQ(SBC_BLK_16, codec_create_blocks_val); in TEST()
79 ASSERT_EQ(50, codec_create_bitpool_val); in TEST()
82 ASSERT_EQ(a2dp.a2dp_buf_used, 13); in TEST()
83 ASSERT_EQ(a2dp.frame_count, 0); in TEST()
84 ASSERT_EQ(a2dp.seq_num, 0); in TEST()
[all …]
Dhfp_info_unittest.cc37 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
41 ASSERT_EQ(0, hfp_info_rm_iodev(info, &dev)); in TEST()
57 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
74 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
78 ASSERT_EQ(500, buffer_frames); in TEST()
81 ASSERT_EQ(500, hfp_buf_queued(info, &dev)); in TEST()
95 ASSERT_EQ(0, queued); in TEST()
122 ASSERT_EQ(0, hfp_info_add_iodev(info, &dev)); in TEST()
130 ASSERT_EQ(50, buffer_frames); in TEST()
133 ASSERT_EQ(0, hfp_buf_queued(info, &dev)); in TEST()
[all …]
/external/llvm/unittests/ADT/
DMapVectorTest.cpp22 ASSERT_EQ(R.first, MV1.begin()); in TEST()
34 ASSERT_EQ(MV1.end(), I); in TEST()
37 ASSERT_EQ(I, MV2.begin()); in TEST()
47 ASSERT_EQ(R.first, MV.begin()); in TEST()
53 ASSERT_EQ(R.first, MV.begin()); in TEST()
89 ASSERT_EQ(MV.size(), 3u); in TEST()
92 ASSERT_EQ(MV.size(), 2u); in TEST()
93 ASSERT_EQ(MV.find(1), MV.end()); in TEST()
94 ASSERT_EQ(MV[3], 4); in TEST()
95 ASSERT_EQ(MV[5], 6); in TEST()
[all …]
/external/tensorflow/tensorflow/core/debug/
Ddebug_graph_utils_test.cc39 ASSERT_EQ("DebugIdentity", debug_op_name_proper); in TEST_F()
40 ASSERT_EQ(0, attributes.size()); in TEST_F()
49 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
53 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
57 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
66 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
70 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
74 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
78 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
82 ASSERT_EQ(errors::Code::INVALID_ARGUMENT, s.code()); in TEST_F()
[all …]
/external/tensorflow/tensorflow/contrib/lite/
Dinterpreter_test.cc31 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
32 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
39 ASSERT_EQ(interpreter.AllocateTensors(), kTfLiteOk); in TEST()
40 ASSERT_EQ(interpreter.Invoke(), kTfLiteOk); in TEST()
47 ASSERT_EQ(interpreter.nodes_size(), 0); in TEST()
48 ASSERT_EQ(interpreter.tensors_size(), 0); in TEST()
49 ASSERT_EQ(interpreter.AddTensors(2, &base_index), kTfLiteOk); in TEST()
50 ASSERT_EQ(interpreter.tensors_size(), 2); in TEST()
51 ASSERT_EQ(base_index, 0); in TEST()
52 ASSERT_EQ(interpreter.AddTensors(3, &base_index), kTfLiteOk); in TEST()
[all …]
/external/perfetto/src/tracing/core/
Dshared_memory_abi_unittest.cc38 ASSERT_EQ(buf(), abi.start()); in TEST_P()
39 ASSERT_EQ(buf() + buf_size(), abi.end()); in TEST_P()
40 ASSERT_EQ(buf_size(), abi.size()); in TEST_P()
41 ASSERT_EQ(page_size(), abi.page_size()); in TEST_P()
42 ASSERT_EQ(kNumPages, abi.num_pages()); in TEST_P()
48 ASSERT_EQ(0u, abi.GetFreeChunks(i)); in TEST_P()
52 ASSERT_EQ(0x01u, abi.GetFreeChunks(0)); in TEST_P()
55 ASSERT_EQ(0x03u, abi.GetFreeChunks(1)); in TEST_P()
58 ASSERT_EQ(0x0fu, abi.GetFreeChunks(2)); in TEST_P()
61 ASSERT_EQ(0x7fu, abi.GetFreeChunks(3)); in TEST_P()
[all …]
Dsliced_protobuf_input_stream_unittest.cc41 ASSERT_EQ(&kBufs[0], ptr); in TEST()
42 ASSERT_EQ(kBufs[0], size); in TEST()
43 ASSERT_EQ(kBufs[0], istr.ByteCount()); in TEST()
48 ASSERT_EQ(kBufs[0] - 10, istr.ByteCount()); in TEST()
50 ASSERT_EQ(reinterpret_cast<const void*>( in TEST()
53 ASSERT_EQ(10, size); in TEST()
54 ASSERT_EQ(kBufs[0], istr.ByteCount()); in TEST()
59 ASSERT_EQ(kBufs[0] - 50, istr.ByteCount()); in TEST()
62 ASSERT_EQ(reinterpret_cast<const void*>( in TEST()
65 ASSERT_EQ(50 - 10, size); in TEST()
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_clock_test.cc25 ASSERT_EQ(clk.size(), 1U); in TEST()
27 ASSERT_EQ(clk.size(), 1U); in TEST()
28 ASSERT_EQ(clk.get(0), 1U); in TEST()
30 ASSERT_EQ(clk.size(), 4U); in TEST()
31 ASSERT_EQ(clk.get(0), 1U); in TEST()
32 ASSERT_EQ(clk.get(1), 0U); in TEST()
33 ASSERT_EQ(clk.get(2), 0U); in TEST()
34 ASSERT_EQ(clk.get(3), 1U); in TEST()
36 ASSERT_EQ(clk.get(3), 2U); in TEST()
42 ASSERT_EQ(vector.size(), 1U); in TEST()
[all …]
/external/perfetto/src/ipc/
Ddeferred_unittest.cc40 ASSERT_EQ(42, msg->num()); in TEST()
41 ASSERT_EQ(13, msg.fd()); in TEST()
42 ASSERT_EQ("foo", msg->str()); in TEST()
57 ASSERT_EQ(1, *num_callbacks); in TEST()
65 ASSERT_EQ(-1, msg.fd()); in TEST()
68 ASSERT_EQ(nullptr, msg.operator->()); in TEST()
77 ASSERT_EQ(1, *num_callbacks); in TEST()
90 ASSERT_EQ(1, *num_callbacks); in TEST()
109 ASSERT_EQ(1, num_callbacks.use_count()); in TEST()
110 ASSERT_EQ(0, *num_callbacks); in TEST()
[all …]

12345678910>>...35