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

Side by Side Diff: test/unittests/heap/heap-unittest.cc

Issue 2578573002: Add unittests to keep InstanceType lists in sync (Closed)
Patch Set: fix merge artifacts Created 4 years 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 | « test/unittests/BUILD.gn ('k') | test/unittests/object-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project 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 <cmath> 5 #include <cmath>
6 #include <iostream>
6 #include <limits> 7 #include <limits>
7 8
8 #include "src/objects.h" 9 #include "src/objects.h"
9 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
10 11
11 #include "src/handles.h" 12 #include "src/handles.h"
12 #include "src/handles-inl.h" 13 #include "src/handles-inl.h"
13 14
14 #include "src/heap/heap.h" 15 #include "src/heap/heap.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 23 matching lines...) Expand all
39 CheckEqualRounded(1.193, Heap::HeapGrowingFactor(200, 1)); 40 CheckEqualRounded(1.193, Heap::HeapGrowingFactor(200, 1));
40 CheckEqualRounded(1.121, Heap::HeapGrowingFactor(300, 1)); 41 CheckEqualRounded(1.121, Heap::HeapGrowingFactor(300, 1));
41 CheckEqualRounded(Heap::HeapGrowingFactor(300, 1), 42 CheckEqualRounded(Heap::HeapGrowingFactor(300, 1),
42 Heap::HeapGrowingFactor(600, 2)); 43 Heap::HeapGrowingFactor(600, 2));
43 CheckEqualRounded(Heap::kMinHeapGrowingFactor, 44 CheckEqualRounded(Heap::kMinHeapGrowingFactor,
44 Heap::HeapGrowingFactor(400, 1)); 45 Heap::HeapGrowingFactor(400, 1));
45 } 46 }
46 47
47 } // namespace internal 48 } // namespace internal
48 } // namespace v8 49 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/BUILD.gn ('k') | test/unittests/object-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698