|
Make it possible to write simple unit tests for the pepper implementation. This adds a mock plugin delegate that does nothing, and a helper unit test base class that sets up a dummy plugin instance and module for use in writing tests.
This implements some basic tests on the resource tracker and fixes a bug I found!
TEST=this is
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68781
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+512 lines, -2 lines) |
Patch |
 |
A |
webkit/glue/plugins/mock_plugin_delegate.h
|
View
|
|
1 chunk |
+98 lines, -0 lines |
1 comment
|
Download
|
 |
A |
webkit/glue/plugins/mock_plugin_delegate.cc
|
View
|
|
1 chunk |
+187 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webkit/glue/plugins/mock_resource.h
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/plugins/pepper_plugin_delegate.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/glue/plugins/pepper_resource.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/plugins/pepper_resource_tracker.h
|
View
|
|
4 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/plugins/pepper_resource_tracker.cc
|
View
|
|
4 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
 |
A |
webkit/glue/plugins/ppapi_unittest.h
|
View
|
|
1 chunk |
+47 lines, -0 lines |
1 comment
|
Download
|
 |
A |
webkit/glue/plugins/resource_tracker_unittest.cc
|
View
|
|
1 chunk |
+116 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell.gypi
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|