Home
last modified time | relevance | path

Searched refs:rnd_engine (Results 1 – 10 of 10) sorted by relevance

/external/perfetto/src/traced/probes/ftrace/
Dpage_pool_unittest.cc38 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/
Dcircular_queue_unittest.cc62 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/
Dtrace_sorter_unittest.cc137 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()
Dstring_pool_unittest.cc90 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()
Dtrace_database_integrationtest.cc40 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/
Dend_to_end_integrationtest_cts.cc77 std::minstd_rand0 rnd_engine(kRandomSeed); in TestMockProducer() local
80 ASSERT_EQ(packet.for_testing().seq_value(), rnd_engine()); in TestMockProducer()
/external/perfetto/test/
Dend_to_end_benchmark.cc101 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()
Dend_to_end_integrationtest.cc423 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/
Dshared_ring_buffer_unittest.cc203 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/
Dtrace_buffer_unittest.cc335 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()