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

Side by Side Diff: test/unittests/libplatform/default-platform-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 "src/libplatform/default-platform.h" 5 #include "src/libplatform/default-platform.h"
6 #include "testing/gmock/include/gmock/gmock.h" 6 #include "testing/gmock/include/gmock/gmock.h"
7 7
8 using testing::InSequence; 8 using testing::InSequence;
9 using testing::StrictMock; 9 using testing::StrictMock;
10 10
(...skipping 23 matching lines...) Expand all
34 StrictMock<MockTask>* task = new StrictMock<MockTask>; 34 StrictMock<MockTask>* task = new StrictMock<MockTask>;
35 platform.CallOnForegroundThread(isolate, task); 35 platform.CallOnForegroundThread(isolate, task);
36 EXPECT_CALL(*task, Run()); 36 EXPECT_CALL(*task, Run());
37 EXPECT_CALL(*task, Die()); 37 EXPECT_CALL(*task, Die());
38 EXPECT_TRUE(platform.PumpMessageLoop(isolate)); 38 EXPECT_TRUE(platform.PumpMessageLoop(isolate));
39 EXPECT_FALSE(platform.PumpMessageLoop(isolate)); 39 EXPECT_FALSE(platform.PumpMessageLoop(isolate));
40 } 40 }
41 41
42 } // namespace platform 42 } // namespace platform
43 } // namespace v8 43 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/heap/gc-idle-time-handler-unittest.cc ('k') | test/unittests/libplatform/task-queue-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698