Home
last modified time | relevance | path

Searched refs:ASSERT_FALSE (Results 1 – 25 of 209) sorted by relevance

123456789

/system/core/init/parser/
Dtokenizer_test.cpp40 ASSERT_FALSE(tokenizer.Next()); in TEST()
46 ASSERT_FALSE(tokenizer.Next()); in TEST()
52 ASSERT_FALSE(tokenizer.Next()); in TEST()
58 ASSERT_FALSE(tokenizer.Next()); in TEST()
65 ASSERT_FALSE(tokenizer.Next()); in TEST()
73 ASSERT_FALSE(tokenizer.Next()); in TEST()
84 ASSERT_FALSE(tokenizer.Next()); in TEST()
91 ASSERT_FALSE(tokenizer.Next()); in TEST()
99 ASSERT_FALSE(tokenizer.Next()); in TEST()
111 ASSERT_FALSE(tokenizer.Next()); in TEST()
[all …]
/system/bt/gd/common/
Dstrings_test.cc99 ASSERT_FALSE(FromHexString("0605560")); in TEST()
101 ASSERT_FALSE(FromHexString("060u560b")); in TEST()
108 ASSERT_FALSE(Int64FromString("")); in TEST()
110 ASSERT_FALSE(Int64FromString("0x42ab")); in TEST()
111 ASSERT_FALSE(Int64FromString("-0x42")); in TEST()
113 ASSERT_FALSE(Int64FromString("42.0")); in TEST()
114 ASSERT_FALSE(Int64FromString("-42.0")); in TEST()
115 ASSERT_FALSE(Int64FromString("42abc")); in TEST()
116 ASSERT_FALSE(Int64FromString("")); in TEST()
127 ASSERT_FALSE(Int64FromString("9223372036854775808")); in TEST()
[all …]
Dnumbers_test.cc30 ASSERT_FALSE(IsNumberInNumericLimits<int32_t>(n)); in TEST()
32 ASSERT_FALSE(IsNumberInNumericLimits<int8_t>(int32_t(128))); in TEST()
33 ASSERT_FALSE(IsNumberInNumericLimits<uint8_t>(uint32_t(256))); in TEST()
34 ASSERT_FALSE(IsNumberInNumericLimits<int8_t>(int32_t(-129))); in TEST()
/system/libbase/
Dparsedouble_test.cpp23 ASSERT_FALSE(android::base::ParseDouble("", &d)); in TEST()
24 ASSERT_FALSE(android::base::ParseDouble("x", &d)); in TEST()
25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d)); in TEST()
34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9)); in TEST()
35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0)); in TEST()
39 ASSERT_FALSE(android::base::ParseDouble("123.4x", nullptr)); in TEST()
41 ASSERT_FALSE(android::base::ParseDouble("3.0", nullptr, -1.0, 2.0)); in TEST()
47 ASSERT_FALSE(android::base::ParseFloat("", &f)); in TEST()
48 ASSERT_FALSE(android::base::ParseFloat("x", &f)); in TEST()
49 ASSERT_FALSE(android::base::ParseFloat("123.4x", &f)); in TEST()
[all …]
Dstrings_test.cpp146 ASSERT_FALSE(android::base::StartsWith("", "foo")); in TEST()
151 ASSERT_FALSE(android::base::StartsWithIgnoreCase("", "foo")); in TEST()
181 ASSERT_FALSE(android::base::StartsWith("foo", "foobar")); in TEST()
185 ASSERT_FALSE(android::base::StartsWithIgnoreCase("foo", "foobar")); in TEST()
186 ASSERT_FALSE(android::base::StartsWithIgnoreCase("foo", "FOOBAR")); in TEST()
190 ASSERT_FALSE(android::base::StartsWith("foobar", "oba")); in TEST()
191 ASSERT_FALSE(android::base::StartsWith("foobar", "bar")); in TEST()
195 ASSERT_FALSE(android::base::StartsWithIgnoreCase("foobar", "oba")); in TEST()
196 ASSERT_FALSE(android::base::StartsWithIgnoreCase("foobar", "OBA")); in TEST()
197 ASSERT_FALSE(android::base::StartsWithIgnoreCase("foobar", "bar")); in TEST()
[all …]
Dparseint_test.cpp26 ASSERT_FALSE(android::base::ParseInt("x", &i)); in TEST()
29 ASSERT_FALSE(android::base::ParseInt("123x", &i)); in TEST()
51 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15)); in TEST()
54 ASSERT_FALSE(android::base::ParseInt("16", &i, 0, 15)); in TEST()
58 ASSERT_FALSE(android::base::ParseInt<int>("x", nullptr)); in TEST()
61 ASSERT_FALSE(android::base::ParseInt<int>("123x", nullptr)); in TEST()
69 ASSERT_FALSE(android::base::ParseUint("x", &i)); in TEST()
72 ASSERT_FALSE(android::base::ParseUint("123x", &i)); in TEST()
82 ASSERT_FALSE(android::base::ParseUint("-123", &i)); in TEST()
95 ASSERT_FALSE(android::base::ParseUint("-12", &i, 15u)); in TEST()
[all …]
Dresult_test.cpp79 ASSERT_FALSE(result.ok()); in TEST()
80 ASSERT_FALSE(result.has_value()); in TEST()
88 ASSERT_FALSE(result.ok()); in TEST()
89 ASSERT_FALSE(result.has_value()); in TEST()
103 ASSERT_FALSE(MakeRvalueErrorResult().ok()); in TEST()
104 ASSERT_FALSE(MakeRvalueErrorResult().has_value()); in TEST()
115 ASSERT_FALSE(result.ok()); in TEST()
116 ASSERT_FALSE(result.has_value()); in TEST()
127 ASSERT_FALSE(result.ok()); in TEST()
128 ASSERT_FALSE(result.has_value()); in TEST()
[all …]
/system/libziparchive/
Dentry_name_utils_test.cc24 ASSERT_FALSE(IsValidEntryName(zeroes, sizeof(zeroes))); in TEST()
27 ASSERT_FALSE(IsValidEntryName(zeroes_continuation_chars, sizeof(zeroes_continuation_chars))); in TEST()
33 ASSERT_FALSE(IsValidEntryName(invalid, sizeof(invalid))); in TEST()
37 ASSERT_FALSE(IsValidEntryName(invalid2, sizeof(invalid2))); in TEST()
44 ASSERT_FALSE(IsValidEntryName(truncated, sizeof(truncated))); in TEST()
49 ASSERT_FALSE(IsValidEntryName(truncated2, sizeof(truncated2))); in TEST()
56 ASSERT_FALSE(IsValidEntryName(bad, sizeof(bad))); in TEST()
61 ASSERT_FALSE(IsValidEntryName(bad2, sizeof(bad2))); in TEST()
/system/core/libutils/
DRefBase_test.cpp90 ASSERT_FALSE(isDeleted) << "Already deleted...?"; in TEST()
105 ASSERT_FALSE(isDeleted) << "deleted too early! still has a reference!"; in TEST()
118 ASSERT_FALSE(isDeleted) << "Foo (weak) already deleted...?"; in TEST()
126 ASSERT_FALSE(isDeleted) << "deleted too early! still has a reference!"; in TEST()
128 ASSERT_FALSE(isDeleted) << "Deletion on wp destruction should no longer occur"; in TEST()
146 ASSERT_FALSE(wp1 != wp2); in TEST()
147 ASSERT_FALSE(wp1 > wp2); in TEST()
148 ASSERT_FALSE(wp1 < wp2); in TEST()
149 ASSERT_FALSE(sp1 == sp2); in TEST()
157 ASSERT_FALSE(wp_smaller == wp_larger); in TEST()
[all …]
/system/bt/gd/storage/
Dmutation_test.cc69 ASSERT_FALSE(config.HasProperty("A", "B")); in TEST()
80 ASSERT_FALSE(config.HasProperty("A", "B")); in TEST()
82 ASSERT_FALSE(config.HasSection("B")); in TEST()
83 ASSERT_FALSE(config.HasProperty("B", "B")); in TEST()
84 ASSERT_FALSE(config.HasProperty("B", "C")); in TEST()
90 ASSERT_FALSE(config.HasSection("A")); in TEST()
91 ASSERT_FALSE(config.HasProperty("A", "B")); in TEST()
92 ASSERT_FALSE(config.HasProperty("A", "C")); in TEST()
93 ASSERT_FALSE(config.HasSection("B")); in TEST()
94 ASSERT_FALSE(config.HasProperty("B", "B")); in TEST()
[all …]
Dconfig_cache_test.cc130 ASSERT_FALSE(config.GetProperty("A", "BC")); in TEST()
131 ASSERT_FALSE(config.GetProperty("ABC", "B")); in TEST()
154 ASSERT_FALSE(config.HasSection("Ab")); in TEST()
155 ASSERT_FALSE(config.HasSection("AA:11:CC:DD:EE:FF")); in TEST()
156 ASSERT_FALSE(config.HasProperty("A", "bB")); in TEST()
157 ASSERT_FALSE(config.HasProperty("AA:BB:11:DD:EE:FF", "B")); in TEST()
171 ASSERT_FALSE(config.HasProperty("A", "B")); in TEST()
172 ASSERT_FALSE(config.HasProperty("AA:BB:CC:DD:EE:FF", "B")); in TEST()
186 ASSERT_FALSE(config.HasProperty("AA:BB:CC:DD:EE:FF", "B")); in TEST()
187 ASSERT_FALSE(config.GetProperty("AA:BB:CC:DD:EE:FF", "B")); in TEST()
[all …]
Ddevice_test.cc42 ASSERT_FALSE(device.Exists()); in TEST()
43 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
67 ASSERT_FALSE(device.Exists()); in TEST()
68 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
92 ASSERT_FALSE(device.Exists()); in TEST()
93 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
112 ASSERT_FALSE(device.Exists()); in TEST()
113 ASSERT_FALSE(device.GetName()); in TEST()
126 ASSERT_FALSE(device.Exists()); in TEST()
127 ASSERT_FALSE(device.GetName()); in TEST()
[all …]
/system/bt/gd/l2cap/
Dsignal_id_test.cc39 ASSERT_FALSE(signal_id.IsValid()); in TEST()
44 ASSERT_FALSE(signal_id.IsValid()); in TEST()
53 ASSERT_FALSE(signal_id.IsValid()); in TEST()
62 ASSERT_FALSE(signal_id.IsValid()); in TEST()
72 ASSERT_FALSE(signal_id.IsValid()); in TEST()
82 ASSERT_FALSE(signal_id.IsValid()); in TEST()
91 ASSERT_FALSE(signal_id.IsValid()); in TEST()
100 ASSERT_FALSE(signal_id.IsValid()); in TEST()
110 ASSERT_FALSE(signal_id.IsValid()); in TEST()
/system/bt/gd/hci/
Daddress_unittest.cc53 ASSERT_FALSE(not_empty.IsEmpty()); in TEST()
98 ASSERT_FALSE(bdaddr1 != bdaddr2); in TEST()
100 ASSERT_FALSE(bdaddr1 != bdaddr1); in TEST()
103 ASSERT_FALSE(bdaddr2 == bdaddr3); in TEST()
113 ASSERT_FALSE(bdaddr1 < bdaddr2); in TEST()
114 ASSERT_FALSE(bdaddr1 < bdaddr1); in TEST()
118 ASSERT_FALSE(bdaddr3 < bdaddr2); in TEST()
127 ASSERT_FALSE(bdaddr1 > bdaddr2); in TEST()
128 ASSERT_FALSE(bdaddr1 > bdaddr1); in TEST()
131 ASSERT_FALSE(bdaddr2 > bdaddr3); in TEST()
[all …]
Duuid_unittest.cc37 ASSERT_FALSE(kBase.IsEmpty()); in TEST()
62 ASSERT_FALSE(ONES.Is16Bit()); in TEST()
63 ASSERT_FALSE(SEQUENTIAL.Is16Bit()); in TEST()
135 ASSERT_FALSE(Uuid::FromString("This is not a UUID")); in TEST()
136 ASSERT_FALSE(Uuid::FromString("11212")); in TEST()
137 ASSERT_FALSE(Uuid::FromString("1121 ")); in TEST()
138 ASSERT_FALSE(Uuid::FromString("AGFE")); in TEST()
139 ASSERT_FALSE(Uuid::FromString("ABFG")); in TEST()
140 ASSERT_FALSE(Uuid::FromString("e39c6285867f14b1d9db035fbd9aebf22")); in TEST()
141 ASSERT_FALSE(Uuid::FromString("12234567-89ab-cdef-abcd-ef01234567ZZ")); in TEST()
/system/teeui/test/
Dteeui_test.cpp45 ASSERT_FALSE(result); in TEST()
47 ASSERT_FALSE(result); in TEST()
54 ASSERT_FALSE(result); in TEST()
56 ASSERT_FALSE(result); in TEST()
63 ASSERT_FALSE(result); in TEST()
65 ASSERT_FALSE(result); in TEST()
73 ASSERT_FALSE(result); in TEST()
75 ASSERT_FALSE(result); in TEST()
82 ASSERT_FALSE(result); in TEST()
84 ASSERT_FALSE(result); in TEST()
[all …]
/system/core/libunwindstack/tests/
DArmExidxDecodeTest.cpp91 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
111 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
131 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
152 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
172 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
192 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
213 ASSERT_FALSE(exidx_->Decode()); in TEST_P()
315 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
349 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
372 ASSERT_FALSE(exidx_->pc_set()); in TEST_P()
[all …]
/system/bt/gd/os/android/
Dsystem_properties_test.cc40 ASSERT_FALSE(ret); in TEST()
47 ASSERT_FALSE(SetSystemProperty(property, "true")); in TEST()
48 ASSERT_FALSE(SetSystemProperty("persist.bluetooth.factoryreset", value)); in TEST()
49 ASSERT_FALSE(SetSystemProperty(property, value)); in TEST()
50 ASSERT_FALSE(GetSystemProperty(property)); in TEST()
/system/media/tests/
Dsystemaudio_tests.cpp30 ASSERT_FALSE(audio_patch_is_valid(&patch)); in TEST()
33 ASSERT_FALSE(audio_patch_is_valid(&patch)); in TEST()
36 ASSERT_FALSE(audio_patch_is_valid(&patch)); in TEST()
39 ASSERT_FALSE(audio_patch_is_valid(&patch)); in TEST()
62 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&device_src_cfg)); in TEST()
64 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&device_src_cfg)); in TEST()
70 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&device_sink_cfg)); in TEST()
72 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&device_sink_cfg)); in TEST()
78 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&mix_sink_cfg)); in TEST()
80 ASSERT_FALSE(audio_port_config_has_hw_av_sync(&mix_sink_cfg)); in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Dasync_manager_unittest.cc71 ASSERT_FALSE(n < 0); in ReadIncomingMessage()
186 ASSERT_FALSE(task1_ran); in TEST_F()
201 ASSERT_FALSE(task1_ran); in TEST_F()
202 ASSERT_FALSE(task2_ran); in TEST_F()
205 ASSERT_FALSE(async_manager_.CancelAsyncTask(task1_id)); in TEST_F()
206 ASSERT_FALSE(task2_ran); in TEST_F()
238 ASSERT_FALSE(task1_ran); in TEST_F()
242 ASSERT_FALSE(task2_ran); in TEST_F()
244 ASSERT_FALSE(task4_ran); in TEST_F()
247 ASSERT_FALSE(async_manager_.CancelAsyncTask(task1_id)); in TEST_F()
[all …]
/system/bt/common/
Dstate_machine_unittest.cc177 ASSERT_FALSE(sm_.state_zero_->on_exit_); in TEST_F()
180 ASSERT_FALSE(sm_.state_one_->on_enter_); in TEST_F()
181 ASSERT_FALSE(sm_.state_one_->on_exit_); in TEST_F()
187 ASSERT_FALSE(sm_.state_one_->on_exit_); in TEST_F()
190 ASSERT_FALSE(sm_.state_two_->on_enter_); in TEST_F()
191 ASSERT_FALSE(sm_.state_two_->on_exit_); in TEST_F()
197 ASSERT_FALSE(sm_.state_two_->on_exit_); in TEST_F()
205 ASSERT_FALSE(sm_.state_zero_->on_exit_); in TEST_F()
210 ASSERT_FALSE(sm_.state_one_->on_enter_); in TEST_F()
211 ASSERT_FALSE(sm_.state_one_->on_exit_); in TEST_F()
[all …]
/system/update_engine/common/
Dterminator_unittest.cc30 ASSERT_FALSE(Terminator::exit_blocked()); in SetUp()
31 ASSERT_FALSE(Terminator::exit_requested()); in SetUp()
61 ASSERT_FALSE(Terminator::exit_requested()); in TEST_F()
63 ASSERT_FALSE(Terminator::exit_blocked()); in TEST_F()
64 ASSERT_FALSE(Terminator::exit_requested()); in TEST_F()
/system/extras/simpleperf/
Dcommand_test.cpp65 ASSERT_FALSE(command.GetUintOption({"-s"}, &i, &value)); in TEST()
67 ASSERT_FALSE(command.GetUintOption({"-s", "0"}, &i, &value, 1)); in TEST()
69 ASSERT_FALSE(command.GetUintOption({"-s", "156"}, &i, &value, 0, 155)); in TEST()
148 ASSERT_FALSE(cmd.PreprocessOptions({"--unknown-option"}, option_formats, &options, in TEST()
151 ASSERT_FALSE( in TEST()
154 ASSERT_FALSE(cmd.PreprocessOptions({"--uint-option", "-2"}, option_formats, &options, in TEST()
156 ASSERT_FALSE(cmd.PreprocessOptions({"--double-option", "str"}, option_formats, &options, in TEST()
159 ASSERT_FALSE(cmd.PreprocessOptions({"non_option_args"}, option_formats, &options, in TEST()
170 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 11)); in TEST()
172 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 0, 9)); in TEST()
[all …]
/system/core/trusty/storage/tests/
Dmain.cpp167 ASSERT_FALSE(HasFatalFailure()); in WritePattern()
438 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
441 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
452 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
480 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
483 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
601 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
612 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
620 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
653 ASSERT_FALSE(HasFatalFailure()); in TEST_P()
[all …]
/system/keymaster/tests/
Dkdf_test.cpp38 ASSERT_FALSE(kdf.Init(KM_DIGEST_MD5, key, 128, salt, 128)); in TEST()
39 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, nullptr, 0, salt, 128)); in TEST()
40 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, nullptr, 128, salt, 128)); in TEST()
41 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, key, 0, salt, 128)); in TEST()

123456789