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

Side by Side Diff: test/unittests/heap/gc-idle-time-handler-unittest.cc

Issue 615393002: Move unit tests to test/unittests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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 | Annotate | Revision Log
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 <limits> 5 #include <limits>
6 6
7 #include "src/heap/gc-idle-time-handler.h" 7 #include "src/heap/gc-idle-time-handler.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // Emulate mutator work. 339 // Emulate mutator work.
340 for (int i = 0; i < GCIdleTimeHandler::kIdleScavengeThreshold; i++) { 340 for (int i = 0; i < GCIdleTimeHandler::kIdleScavengeThreshold; i++) {
341 handler()->NotifyScavenge(); 341 handler()->NotifyScavenge();
342 } 342 }
343 action = handler()->Compute(0, heap_state); 343 action = handler()->Compute(0, heap_state);
344 EXPECT_EQ(DO_NOTHING, action.type); 344 EXPECT_EQ(DO_NOTHING, action.type);
345 } 345 }
346 346
347 } // namespace internal 347 } // namespace internal
348 } // namespace v8 348 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698