Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: components/tracing/core/trace_ring_buffer_unittest.cc

Issue 2228593004: Revert of tracing v2: Introduce TraceBufferWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proto_refactor
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/tracing/core/trace_ring_buffer.cc ('k') | components/tracing/proto/events_chunk.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/core/trace_ring_buffer_unittest.cc
diff --git a/components/tracing/core/trace_ring_buffer_unittest.cc b/components/tracing/core/trace_ring_buffer_unittest.cc
index 5a1a41b3b1303abd9dcac220a8fc882ad4ce7fa7..34104bd15459a8e9a5da79c704ce027ea27f2a82 100644
--- a/components/tracing/core/trace_ring_buffer_unittest.cc
+++ b/components/tracing/core/trace_ring_buffer_unittest.cc
@@ -10,6 +10,8 @@
namespace v2 {
namespace {
+
+const size_t kChunkSize = TraceRingBuffer::Chunk::kSize;
TEST(TraceRingBufferTest, BasicChunkWrapping) {
const uint32_t kNumChunks = 5;
@@ -48,7 +50,7 @@
TEST(TraceRingBufferTest, ChunkBankrupcyDoesNotCrash) {
const size_t kNumChunks = 2;
- const size_t kBufferSize = kChunkSize * kNumChunks;
+ const size_t kBufferSize = TraceRingBuffer::Chunk::kSize * kNumChunks;
std::unique_ptr<uint8_t[]> storage(new uint8_t[kBufferSize]);
TraceRingBuffer ring_buffer(storage.get(), kBufferSize);
« no previous file with comments | « components/tracing/core/trace_ring_buffer.cc ('k') | components/tracing/proto/events_chunk.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698