|
Introduce mock test system for navigator content utils
This cl introduces setNavigatorContentUtilsClientMock() and NavigatorContentUtilsClientMock class in order to simulate registerProtocolHandler(), unregisterProtocolHandler(), and isProtocolHandlerRegistered(). Thus, navigator content utils can test if defined functions can work correctly.
Besides this cl updates all navigator content util's tests so that the functions can work correctly.
BUG=none
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175454
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Stats (+322 lines, -105 lines) |
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/is-protocol-handler-registered.html
|
View
|
2 chunks |
+16 lines, -5 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/is-protocol-handler-registered-expected.txt
|
View
|
1 chunk |
+7 lines, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html
|
View
|
7 chunks |
+36 lines, -16 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt
|
View
|
1 chunk |
+41 lines, -31 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html
|
View
|
7 chunks |
+44 lines, -16 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler-expected.txt
|
View
|
1 chunk |
+42 lines, -31 lines |
0 comments
|
 |
M |
Source/modules/modules.gypi
|
View
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
 |
M |
Source/modules/navigatorcontentutils/NavigatorContentUtils.h
|
View
|
2 chunks |
+2 lines, -1 line |
0 comments
|
 |
M |
Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
A |
Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.h
|
View
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
 |
A |
Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp
|
View
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
 |
A + |
Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.idl
|
View
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
 |
A |
Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h
|
View
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
 |
A |
Source/modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.cpp
|
View
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Total messages: 15 (0 generated)
|