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

Unified Diff: cc/thread_task_unittest.cc

Issue 11344004: Remove WebKit::Platform dependencies from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix webkit_compositor_bindings_unittests Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/thread_task.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_task_unittest.cc
diff --git a/cc/thread_task_unittest.cc b/cc/thread_task_unittest.cc
deleted file mode 100644
index da674b090d9f59084f9e0cc7167930307599c1c6..0000000000000000000000000000000000000000
--- a/cc/thread_task_unittest.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-
-#include "cc/thread_task.h"
-
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-
-class Mock {
-public:
- MOCK_METHOD0(method0, void());
- MOCK_METHOD1(method1, void(int a1));
- MOCK_METHOD2(method2, void(int a1, int a2));
- MOCK_METHOD3(method3, void(int a1, int a2, int a3));
- MOCK_METHOD4(method4, void(int a1, int a2, int a3, int a4));
- MOCK_METHOD5(method5, void(int a1, int a2, int a3, int a4, int a5));
-};
-
-TEST(ThreadTaskTest, runnableMethods)
-{
- Mock mock;
- EXPECT_CALL(mock, method0()).Times(1);
- EXPECT_CALL(mock, method1(9)).Times(1);
- EXPECT_CALL(mock, method2(9, 8)).Times(1);
- EXPECT_CALL(mock, method3(9, 8, 7)).Times(1);
- EXPECT_CALL(mock, method4(9, 8, 7, 6)).Times(1);
- EXPECT_CALL(mock, method5(9, 8, 7, 6, 5)).Times(1);
-
- createThreadTask(&mock, &Mock::method0)->performTask();
- createThreadTask(&mock, &Mock::method1, 9)->performTask();
- createThreadTask(&mock, &Mock::method2, 9, 8)->performTask();
- createThreadTask(&mock, &Mock::method3, 9, 8, 7)->performTask();
- createThreadTask(&mock, &Mock::method4, 9, 8, 7, 6)->performTask();
- createThreadTask(&mock, &Mock::method5, 9, 8, 7, 6, 5)->performTask();
-}
-
-} // namespace cc
« no previous file with comments | « cc/thread_task.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698