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

Side by Side Diff: components/html_viewer/discardable_memory_allocator_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/html_viewer/discardable_memory_allocator.h" 5 #include "components/html_viewer/discardable_memory_allocator.h"
6 6
7 #include <stddef.h>
8
7 #include "base/memory/discardable_memory.h" 9 #include "base/memory/discardable_memory.h"
8 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
9 11
10 namespace html_viewer { 12 namespace html_viewer {
11 namespace { 13 namespace {
12 14
13 const size_t kOneKilobyte = 1024; 15 const size_t kOneKilobyte = 1024;
14 const size_t kAlmostOneMegabyte = 1023 * kOneKilobyte; 16 const size_t kAlmostOneMegabyte = 1023 * kOneKilobyte;
15 const size_t kOneMegabyte = 1024 * kOneKilobyte; 17 const size_t kOneMegabyte = 1024 * kOneKilobyte;
16 18
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 EXPECT_NE(nullptr, chunk_two->data()); 62 EXPECT_NE(nullptr, chunk_two->data());
61 EXPECT_NE(nullptr, chunk_three->data()); 63 EXPECT_NE(nullptr, chunk_three->data());
62 64
63 chunk_one->Unlock(); 65 chunk_one->Unlock();
64 chunk_two->Unlock(); 66 chunk_two->Unlock();
65 chunk_three->Unlock(); 67 chunk_three->Unlock();
66 } 68 }
67 69
68 } // namespace 70 } // namespace
69 } // namespace html_viewer 71 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/discardable_memory_allocator.cc ('k') | components/html_viewer/document_resource_waiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698