/external/llvm/unittests/ADT/ |
TwineTest.cpp | 26 EXPECT_EQ("", Twine().str()); 27 EXPECT_EQ("hi", Twine("hi").str()); 28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); 29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); 30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); 31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); 35 EXPECT_EQ("123", Twine(123U).str()); 36 EXPECT_EQ("123", Twine(123).str()); 37 EXPECT_EQ("-123", Twine(-123).str()); 38 EXPECT_EQ("123", Twine(123).str()) [all...] |
/external/ceres-solver/internal/ceres/ |
ordered_groups_test.cc | 43 EXPECT_EQ(ordering.NumGroups(), 0); 44 EXPECT_EQ(ordering.NumElements(), 0); 45 EXPECT_EQ(ordering.GroupSize(1), 0); 47 EXPECT_EQ(ordering.GroupId(&x), -1); 59 EXPECT_EQ(ordering.NumGroups(), 1); 60 EXPECT_EQ(ordering.NumElements(), 3); 61 EXPECT_EQ(ordering.GroupSize(1), 3); 62 EXPECT_EQ(ordering.GroupSize(0), 0); 63 EXPECT_EQ(ordering.GroupId(x), 1); 64 EXPECT_EQ(ordering.GroupId(x + 1), 1) [all...] |
/external/chromium_org/chrome/browser/apps/drive/ |
drive_app_mapping_unittest.cc | 35 EXPECT_EQ("", mapping()->GetChromeApp("")); 36 EXPECT_EQ("", mapping()->GetDriveApp("")); 37 EXPECT_EQ("", mapping()->GetChromeApp("non-existent-drive-app")); 38 EXPECT_EQ("", mapping()->GetDriveApp("non-existent-chrome-app")); 39 EXPECT_EQ(0u, mapping()->GetDriveAppIds().size()); 47 EXPECT_EQ("chrome", mapping()->GetChromeApp("drive")); 48 EXPECT_EQ("drive", mapping()->GetDriveApp("chrome")); 51 EXPECT_EQ(1u, drive_app_ids.size()); 52 EXPECT_EQ(1u, drive_app_ids.count("drive")); 56 EXPECT_EQ("", mapping()->GetDriveApp("chrome")) [all...] |
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
omnibox_result_view_unittest.cc | 16 EXPECT_EQ(-1, contents_max_width); 17 EXPECT_EQ(-1, description_max_width); 23 EXPECT_EQ(-1, contents_max_width); 24 EXPECT_EQ(0, description_max_width); 31 EXPECT_EQ(-1, contents_max_width); 32 EXPECT_EQ(0, description_max_width); 38 EXPECT_EQ(300, contents_max_width); 39 EXPECT_EQ(400 - 300 - separator_width, description_max_width); 45 EXPECT_EQ(-1, contents_max_width); 46 EXPECT_EQ(0, description_max_width) [all...] |
/external/chromium_org/chrome/renderer/safe_browsing/ |
murmurhash3_util_unittest.cc | 15 EXPECT_EQ(893017187U, MurmurHash3String("abcd", 1234U)); 16 EXPECT_EQ(3322282861U, MurmurHash3String("abcde", 56789U));
|
/external/chromium_org/third_party/webrtc/voice_engine/test/auto_test/standard/ |
hardware_test.cc | 21 EXPECT_EQ(0, voe_hardware_->GetNumOfRecordingDevices(num_recording_devices)); 22 EXPECT_EQ(0, voe_hardware_->GetNumOfPlayoutDevices(num_playout_devices)); 35 EXPECT_EQ(0, voe_hardware_->SetRecordingDevice( 38 EXPECT_EQ(0, voe_hardware_->SetPlayoutDevice( 42 EXPECT_EQ(0, voe_hardware_->SetRecordingDevice(0)); 43 EXPECT_EQ(0, voe_hardware_->SetPlayoutDevice(0)); 50 EXPECT_EQ(0, voe_hardware_->GetRecordingDeviceName( 52 EXPECT_EQ(0, voe_hardware_->GetPlayoutDeviceName(
|
/external/chromium_org/tools/gn/ |
function_get_label_info_unittest.cc | 44 EXPECT_EQ("", Call(":name", "incorrect_value")); 45 EXPECT_EQ("", Call("", "name")); 49 EXPECT_EQ("name", Call(":name", "name")); 50 EXPECT_EQ("name", Call("//foo/bar:name", "name")); 54 EXPECT_EQ("//src/foo", Call(":name", "dir")); 55 EXPECT_EQ("//foo/bar", Call("//foo/bar:baz", "dir")); 59 EXPECT_EQ("//out/Debug", Call(":name", "root_out_dir")); 60 EXPECT_EQ("//out/Debug/random", 65 EXPECT_EQ("//out/Debug/gen", Call(":name", "root_gen_dir")); 66 EXPECT_EQ("//out/Debug/random/gen" [all...] |
/external/llvm/unittests/Support/ |
DataExtractorTest.cpp | 30 EXPECT_EQ(0x80U, DE.getU8(&offset)); 31 EXPECT_EQ(1U, offset); 33 EXPECT_EQ(0x8090U, DE.getU16(&offset)); 34 EXPECT_EQ(2U, offset); 36 EXPECT_EQ(0x8090FFFFU, DE.getU32(&offset)); 37 EXPECT_EQ(4U, offset); 39 EXPECT_EQ(0x8090FFFF80000000ULL, DE.getU64(&offset)); 40 EXPECT_EQ(8U, offset); 42 EXPECT_EQ(0x8090FFFF80000000ULL, DE.getAddress(&offset)); 43 EXPECT_EQ(8U, offset) [all...] |
ScaledNumberTest.cpp | 44 EXPECT_EQ(getRounded32(0, 0, false), SP32(0, 0)); 45 EXPECT_EQ(getRounded32(0, 0, true), SP32(1, 0)); 46 EXPECT_EQ(getRounded32(20, 21, true), SP32(21, 21)); 47 EXPECT_EQ(getRounded32(UINT32_MAX, 0, false), SP32(UINT32_MAX, 0)); 48 EXPECT_EQ(getRounded32(UINT32_MAX, 0, true), SP32(1 << 31, 1)); 50 EXPECT_EQ(getRounded64(0, 0, false), SP64(0, 0)); 51 EXPECT_EQ(getRounded64(0, 0, true), SP64(1, 0)); 52 EXPECT_EQ(getRounded64(20, 21, true), SP64(21, 21)); 53 EXPECT_EQ(getRounded64(UINT32_MAX, 0, false), SP64(UINT32_MAX, 0)); 54 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)) [all...] |
/external/chromium_org/base/strings/ |
safe_sprintf_unittest.cc | 30 EXPECT_EQ(-1, SafeSNPrintf(buf, -1, "")); 31 EXPECT_EQ('X', buf[0]); 32 EXPECT_EQ('X', buf[1]); 35 EXPECT_EQ(-1, SafeSNPrintf(buf, 0, "")); 36 EXPECT_EQ('X', buf[0]); 37 EXPECT_EQ('X', buf[1]); 40 EXPECT_EQ(0, SafeSNPrintf(buf, 1, "")); 41 EXPECT_EQ(0, buf[0]); 42 EXPECT_EQ('X', buf[1]); 46 EXPECT_EQ(0, SafeSNPrintf(buf, 2, "")) [all...] |
/art/runtime/ |
utils_test.cc | 38 EXPECT_EQ("java.lang.Class[]", PrettyDescriptor("[Ljava/lang/Class;")); 39 EXPECT_EQ("java.lang.Class[][]", PrettyDescriptor("[[Ljava/lang/Class;")); 43 EXPECT_EQ("java.lang.String", PrettyDescriptor("Ljava.lang.String;")); 44 EXPECT_EQ("java.lang.String", PrettyDescriptor("Ljava/lang/String;")); 48 EXPECT_EQ("boolean", PrettyDescriptor(Primitive::kPrimBoolean)); 49 EXPECT_EQ("byte", PrettyDescriptor(Primitive::kPrimByte)); 50 EXPECT_EQ("char", PrettyDescriptor(Primitive::kPrimChar)); 51 EXPECT_EQ("short", PrettyDescriptor(Primitive::kPrimShort)); 52 EXPECT_EQ("int", PrettyDescriptor(Primitive::kPrimInt)); 53 EXPECT_EQ("float", PrettyDescriptor(Primitive::kPrimFloat)) [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_device/test/ |
audio_device_test_api.cc | 66 EXPECT_EQ(0, audio_device_->StopRecording()); 67 EXPECT_EQ(0, audio_device_->StopPlayout()); 188 EXPECT_EQ(0, audio_device_->Release()); 193 EXPECT_EQ(0, audio_device_->Release()); 205 EXPECT_EQ(0, audio_device_->Release()); 234 EXPECT_EQ(0, audio_device_->Terminate()); 235 EXPECT_EQ(0, audio_device_->Release()); 267 EXPECT_EQ(0, audio_device_->ActiveAudioLayer(&audio_layer)); 288 EXPECT_EQ(0, audio_device_->Release()); 297 EXPECT_EQ(0, audio_device_->Init()) [all...] |
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
path_test.cc | 22 EXPECT_EQ(".", p1.Join()); 25 EXPECT_EQ("/", p2.Join()); 36 EXPECT_EQ(0, empty.Size()); 38 EXPECT_EQ("", empty.Join()); 40 EXPECT_EQ(1, dot.Size()); 42 EXPECT_EQ(".", dot.Join()); 44 EXPECT_EQ(1, root.Size()); 46 EXPECT_EQ("/", root.Join()); 48 EXPECT_EQ(4, abs_str.Size()); 50 EXPECT_EQ("/abs/from/string", abs_str.Join()) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
jid_unittest.cc | 11 EXPECT_EQ("", jid.node()); 12 EXPECT_EQ("dude", jid.domain()); 13 EXPECT_EQ("", jid.resource()); 14 EXPECT_EQ("dude", jid.Str()); 15 EXPECT_EQ("dude", jid.BareJid().Str()); 23 EXPECT_EQ("walter", jid.node()); 24 EXPECT_EQ("dude", jid.domain()); 25 EXPECT_EQ("", jid.resource()); 26 EXPECT_EQ("walter@dude", jid.Str()); 27 EXPECT_EQ("walter@dude", jid.BareJid().Str()) [all...] |
/external/chromium_org/content/browser/renderer_host/input/ |
touch_event_queue_unittest.cc | 265 EXPECT_EQ(1U, queued_event_count()); 266 EXPECT_EQ(1U, GetAndResetSentEventCount()); 270 EXPECT_EQ(2U, queued_event_count()); 271 EXPECT_EQ(0U, GetAndResetSentEventCount()); 275 EXPECT_EQ(1U, queued_event_count()); 276 EXPECT_EQ(1U, GetAndResetSentEventCount()); 277 EXPECT_EQ(1U, GetAndResetAckedEventCount()); 278 EXPECT_EQ(WebInputEvent::TouchStart, acked_event().type); 283 EXPECT_EQ(0U, queued_event_count()); 284 EXPECT_EQ(0U, GetAndResetSentEventCount()) [all...] |
/external/chromium_org/chromeos/system/ |
name_value_pairs_parser_unittest.cc | 20 EXPECT_EQ("Foo", map["foo"]); 28 EXPECT_EQ(3U, map.size()); 29 EXPECT_EQ("Foo", map["foo"]); 30 EXPECT_EQ("Bar", map["bar"]); 31 EXPECT_EQ("FooBar", map["foobar"]); 36 EXPECT_EQ(2U, map.size()); 37 EXPECT_EQ("Foo", map["foo"]); 38 EXPECT_EQ("Bar", map["bar"]); 43 EXPECT_EQ(2U, map.size()); 44 EXPECT_EQ("Foo=foo", map["foo"]) [all...] |
/external/chromium_org/components/language_usage_metrics/ |
language_usage_metrics_unittest.cc | 21 EXPECT_EQ(1U, language_set.size()); 22 EXPECT_EQ(JAPANESE, *language_set.begin()); 26 EXPECT_EQ(0U, language_set.size()); 30 EXPECT_EQ(1U, language_set.size()); 31 EXPECT_EQ(JAPANESE, *language_set.begin()); 35 EXPECT_EQ(1U, language_set.size()); 36 EXPECT_EQ(JAPANESE, *language_set.begin()); 40 EXPECT_EQ(1U, language_set.size()); 41 EXPECT_EQ(JAPANESE, *language_set.begin()); 45 EXPECT_EQ(1U, language_set.size()) [all...] |
/external/chromium_org/net/base/ |
url_util_unittest.cc | 15 EXPECT_EQ("http://example.com/path?name=value", 22 EXPECT_EQ("http://example.com/path?existing=one&name=value", 28 EXPECT_EQ("http://example.com/path?existing=one&na+me=v.alue%3D", 36 EXPECT_EQ("http://example.com/path?name=value", 43 EXPECT_EQ("http://example.com/path?existing=one&name=value", 50 EXPECT_EQ("http://example.com/path?existing=one&na+me=v.alue%3D", 56 EXPECT_EQ("http://example.com/path?existing=one&name=new", 63 EXPECT_EQ("http://example.com/path?na+me=n.ew%3D&existing=one", 69 EXPECT_EQ("http://example.com/path?name=new&existing=one&name=old", 76 EXPECT_EQ("http://example.com/path?bar&name=new&left=& [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/cng/ |
cng_unittest.cc | 66 EXPECT_EQ(-1, WebRtcCng_CreateEnc(NULL)); 67 EXPECT_EQ(-1, WebRtcCng_CreateDec(NULL)); 72 EXPECT_EQ(0, WebRtcCng_CreateEnc(&cng_enc_inst_)); 73 EXPECT_EQ(0, WebRtcCng_CreateDec(&cng_dec_inst_)); 77 EXPECT_EQ(0, WebRtcCng_FreeEnc(cng_enc_inst_)); 78 EXPECT_EQ(0, WebRtcCng_FreeDec(cng_dec_inst_)); 84 EXPECT_EQ(0, WebRtcCng_CreateEnc(&cng_enc_inst_)); 87 EXPECT_EQ(-1, WebRtcCng_InitEnc(cng_enc_inst_, 8000, kSidNormalIntervalUpdate, 89 EXPECT_EQ(6130, WebRtcCng_GetErrorCodeEnc(cng_enc_inst_)); 92 EXPECT_EQ(-1, WebRtcCng_InitEnc(cng_enc_inst_, 8000, kSidNormalIntervalUpdate [all...] |
/external/chromium_org/base/win/ |
enum_variant_unittest.cc | 28 EXPECT_EQ(ev, ienumvariant); 33 EXPECT_EQ(S_FALSE, ev->Next(1, &out_element, &out_received)); 34 EXPECT_EQ(0, out_received); 36 EXPECT_EQ(S_FALSE, ev->Skip(1)); 38 EXPECT_EQ(S_OK, ev->Reset()); 41 EXPECT_EQ(S_OK, ev->Clone(&ev2)); 45 EXPECT_EQ(S_FALSE, ev2->Skip(1)); 46 EXPECT_EQ(S_OK, ev2->Reset()); 49 EXPECT_EQ(0, ev2_finalrefcount); 52 EXPECT_EQ(0, ev_finalrefcount) [all...] |
/external/chromium_org/components/rappor/ |
bloom_filter_unittest.cc | 16 EXPECT_EQ(1u, filter.bytes().size()); 17 EXPECT_EQ(0x00, filter.bytes()[0]); 21 EXPECT_EQ(0x2a, filter.bytes()[0]); 25 EXPECT_EQ(0x2a, filter.bytes()[0]); 28 EXPECT_EQ(0x00, filter2.bytes()[0]); 30 EXPECT_EQ(0xa8, filter2.bytes()[0]); 34 EXPECT_EQ(0xaa, filter.bytes()[0]); 43 EXPECT_EQ(500u, filter.bytes().size()); 44 EXPECT_EQ(0, CountBits(filter.bytes())); 47 EXPECT_EQ(1, CountBits(filter.bytes())) [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/testing/ |
WTFTestHelpersTest.cpp | 55 EXPECT_EQ(CString("\"Hello!\""), toCStringThroughPrinter("Hello!")); 56 EXPECT_EQ(CString("\"\\\"\""), toCStringThroughPrinter("\"")); 57 EXPECT_EQ(CString("\"\\\\\""), toCStringThroughPrinter("\\")); 58 EXPECT_EQ(CString("\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\""), toCStringThroughPrinter(String("\x00\x01\x02\x03\x04\x05\x06\x07", 8))); 59 EXPECT_EQ(CString("\"\\u0008\\t\\n\\u000B\\u000C\\r\\u000E\\u000F\""), toCStringThroughPrinter(String("\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", 8))); 60 EXPECT_EQ(CString("\"\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\""), toCStringThroughPrinter(String("\x10\x11\x12\x13\x14\x15\x16\x17", 8))); 61 EXPECT_EQ(CString("\"\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001E\\u001F\""), toCStringThroughPrinter(String("\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F", 8))); 62 EXPECT_EQ(CString("\"\\u007F\\u0080\\u0081\""), toCStringThroughPrinter("\x7F\x80\x81")); 63 EXPECT_EQ(CString("\"\""), toCStringThroughPrinter(emptyString())); 64 EXPECT_EQ(CString("<null>"), toCStringThroughPrinter(String())) [all...] |
/external/chromium_org/third_party/libaddressinput/src/cpp/test/ |
lookup_key_util_test.cc | 25 EXPECT_EQ("test:///", util.GetUrlForKey("")); 26 EXPECT_EQ("test:///data", util.GetUrlForKey("data")); 27 EXPECT_EQ("test:///data/US", util.GetUrlForKey("data/US")); 28 EXPECT_EQ("test:///data/CA--fr", util.GetUrlForKey("data/CA--fr")); 33 EXPECT_EQ("", util.GetKeyForUrl("test://")); 34 EXPECT_EQ("", util.GetKeyForUrl("http://www.google.com/")); 35 EXPECT_EQ("", util.GetKeyForUrl("")); 36 EXPECT_EQ("", util.GetKeyForUrl("test:///")); 37 EXPECT_EQ("data", util.GetKeyForUrl("test:///data")); 38 EXPECT_EQ("data/US", util.GetKeyForUrl("test:///data/US")) [all...] |
/external/chromium_org/third_party/webrtc/voice_engine/ |
transmit_mixer_unittest.cc | 35 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(NULL, 37 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, 39 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, 41 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, 43 EXPECT_EQ(0, tm->RegisterExternalMediaProcessing(&callback, 45 EXPECT_EQ(0, tm->RegisterExternalMediaProcessing(&callback, 47 EXPECT_EQ(-1, tm->DeRegisterExternalMediaProcessing(kPlaybackPerChannel)); 48 EXPECT_EQ(-1, tm->DeRegisterExternalMediaProcessing( 50 EXPECT_EQ(-1, tm->DeRegisterExternalMediaProcessing(kRecordingPerChannel)); 51 EXPECT_EQ(0, tm->DeRegisterExternalMediaProcessing [all...] |
/external/chromium_org/ui/gfx/geometry/ |
safe_integer_conversions_unittest.cc | 14 EXPECT_EQ(0, ClampToInt(std::numeric_limits<float>::quiet_NaN())); 23 EXPECT_EQ(int_max, ClampToInt(infinity)); 24 EXPECT_EQ(int_max, ClampToInt(max)); 25 EXPECT_EQ(int_max, ClampToInt(max + 100)); 27 EXPECT_EQ(-100, ClampToInt(-100.5f)); 28 EXPECT_EQ(0, ClampToInt(0)); 29 EXPECT_EQ(100, ClampToInt(100.5f)); 31 EXPECT_EQ(int_min, ClampToInt(-infinity)); 32 EXPECT_EQ(int_min, ClampToInt(min)); 33 EXPECT_EQ(int_min, ClampToInt(min - 100)) [all...] |