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

Side by Side Diff: net/quic/quic_simple_buffer_allocator_test.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_simple_buffer_allocator.cc ('k') | net/quic/quic_socket_address_coder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/quic/quic_simple_buffer_allocator.h"
6
7 #include "net/quic/quic_protocol.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 using ::testing::Eq;
12
13 namespace net {
14 namespace {
15
16 TEST(SimpleBufferAllocatorTest, NewDelete) {
17 SimpleBufferAllocator alloc;
18 char* buf = alloc.New(4);
19 EXPECT_NE(nullptr, buf);
20 alloc.Delete(buf);
21 }
22
23 TEST(SimpleBufferAllocatorTest, DeleteNull) {
24 SimpleBufferAllocator alloc;
25 alloc.Delete(nullptr);
26 }
27
28 TEST(SimpleBufferAllocatorTest, StoreInUniqueStreamBuffer) {
29 SimpleBufferAllocator alloc;
30 UniqueStreamBuffer buf = NewStreamBuffer(&alloc, 4);
31 buf.reset();
32 }
33
34 } // namespace
35 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_simple_buffer_allocator.cc ('k') | net/quic/quic_socket_address_coder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698