Searched refs:rnd_engine (Results 1 – 10 of 10) sorted by relevance
/external/perfetto/src/traced/probes/ftrace/ |
D | page_pool_unittest.cc | 38 std::minstd_rand0 rnd_engine(seed); in TEST() local 39 std::generate(page, page + base::kPageSize, rnd_engine); in TEST() 58 std::minstd_rand0 rnd_engine(seed); in TEST() local 59 std::generate(expected, expected + base::kPageSize, rnd_engine); in TEST() 73 std::minstd_rand0 rnd_engine(0); in TEST() local 78 std::generate(page.begin(), page.end(), rnd_engine); in TEST()
|
/external/perfetto/src/base/ |
D | circular_queue_unittest.cc | 62 std::minstd_rand0 rnd_engine(0); in TEST() local 64 int n = static_cast<int>(rnd_engine()); in TEST() 71 std::minstd_rand0 rnd_engine(0); in TEST() local 75 ASSERT_EQ(*it, static_cast<int>(rnd_engine())); in TEST() 81 std::minstd_rand0 rnd_engine(0); in TEST() local 83 ASSERT_EQ(*queue.begin(), static_cast<int>(rnd_engine())); in TEST() 86 rnd_engine.discard(num_del); in TEST() 93 std::minstd_rand0 rnd_engine(0); in TEST() local 95 queue.emplace_back(static_cast<uint64_t>(rnd_engine())); in TEST()
|
/external/perfetto/src/trace_processor/ |
D | trace_sorter_unittest.cc | 137 std::minstd_rand0 rnd_engine(0); in TEST_F() local 159 int64_t ts = abs(static_cast<int64_t>(rnd_engine())); in TEST_F() 160 int num_cpus = rnd_engine() % 3; in TEST_F() 162 uint32_t cpu = static_cast<uint32_t>(rnd_engine() % 32); in TEST_F()
|
D | string_pool_unittest.cc | 90 std::minstd_rand0 rnd_engine(0); in TEST() local 93 buffer.get()[i] = 'A' + (rnd_engine() % 26); in TEST() 101 size_t length = static_cast<uint64_t>(rnd_engine()) % (kMaxStrSize + 1); in TEST()
|
D | trace_database_integrationtest.cc | 40 std::minstd_rand0 rnd_engine(0); in LoadTrace() local 43 size_t chunk_size = static_cast<size_t>(dist(rnd_engine)); in LoadTrace()
|
/external/perfetto/test/cts/ |
D | end_to_end_integrationtest_cts.cc | 77 std::minstd_rand0 rnd_engine(kRandomSeed); in TestMockProducer() local 80 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TestMockProducer()
|
/external/perfetto/test/ |
D | end_to_end_benchmark.cc | 101 std::minstd_rand0 rnd_engine(kRandomSeed); in BenchmarkProducer() local 105 rnd_engine = std::minstd_rand0(packet.for_testing().seq_value()); in BenchmarkProducer() 108 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in BenchmarkProducer()
|
D | end_to_end_integrationtest.cc | 423 std::minstd_rand0 rnd_engine(kRandomSeed); in TEST_F() local 426 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TEST_F() 464 std::minstd_rand0 rnd_engine(kRandomSeed); in TEST_F() local 467 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TEST_F()
|
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer_unittest.cc | 203 std::minstd_rand0 rnd_engine(static_cast<uint32_t>(thread_id)); in TEST() local 206 size_t size = dist(rnd_engine); in TEST() 210 std::generate(data.begin(), data.end(), rnd_engine); in TEST()
|
/external/perfetto/src/tracing/core/ |
D | trace_buffer_unittest.cc | 335 std::minstd_rand0 rnd_engine(seed); in TEST_F() local 336 ResetBuffer(4096 * (1 + rnd_engine() % 32)); in TEST_F() 343 const size_t chunk_size = size_dist(rnd_engine); in TEST_F() 346 ProducerID p = prod_dist(rnd_engine); in TEST_F() 347 WriterID w = wri_dist(rnd_engine); in TEST_F()
|