cef/tests/ceftests
Marshall Greenblatt 241941a44a Move message routing from CefBrowser to CefFrame (see issue #2498).
This change moves the SendProcessMessage method from CefBrowser to CefFrame and
adds CefBrowser parameters to OnProcessMessageReceived and
OnDraggableRegionsChanged.

The internal implementation has changed as follows:
- Frame IDs are now a 64-bit combination of the 32-bit render_process_id and
  render_routing_id values that uniquely identify a RenderFrameHost (RFH).
- CefFrameHostImpl objects are now managed by CefBrowserInfo with life span tied
  to RFH expectations. Specifically, a CefFrameHostImpl object representing a
  sub-frame will be created when a RenderFrame is created in the renderer
  process and detached when the associated RenderFrame is deleted or the
  renderer process in which it runs has died.
- The CefFrameHostImpl object representing the main frame will always be valid
  but the underlying RFH (and associated frame ID) may change over time as a
  result of cross-origin navigations. Despite these changes calling LoadURL on
  the main frame object in the browser process will always navigate as expected.
- Speculative RFHs, which may be created as a result of a cross-origin
  navigation and discarded if that navigation is not committed, are now handled
  correctly (e.g. ignored in most cases until they're committed).
- It is less likely, but still possible, to receive a CefFrame object with an
  invalid frame ID (ID < 0). This can happen in cases where a RFH has not yet
  been created for a sub-frame. For example, when OnBeforeBrowse is called
  before initiating navigation in a previously nonexisting sub-frame.

To test: All tests pass with NetworkService enabled and disabled.
2019-05-29 17:44:56 +03:00
..
extensions Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
resources Compute all version numbers using cef_version.py (see issue #2596) 2019-03-15 13:16:43 -04:00
views Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
CMakeLists.txt.in macOS: Add support for and enable the V2 sandbox (issue #2459) 2018-07-27 22:33:31 -04:00
audio_output_unittest.cc Add ability to capture audio output to buffer (issue #2381) 2019-03-07 17:09:54 -05:00
browser_info_map_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
client_app_delegates.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
command_line_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cookie_unittest.cc Fix crash when setting an invalid cookie (fixes issue #2657) 2019-05-08 18:12:21 +00:00
dialog_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
display_unittest.cc Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
dom_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
download_unittest.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
draggable_regions_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
file_util_unittest.cc Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
frame_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
image_unittest.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
image_util.cc Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
image_util.h Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
jsdialog_unittest.cc Update to Chromium revision d483fb77 (#474934) 2017-06-02 05:55:23 -07:00
life_span_unittest.cc Update to Chromium revision d483fb77 (#474934) 2017-06-02 05:55:23 -07:00
message_router_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
navigation_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
os_rendering_unittest.cc Add |extra_info| parameter for browser creation (fixes issue #1088) 2019-05-08 12:31:46 -04:00
os_rendering_unittest_mac.h Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
os_rendering_unittest_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
osr_accessibility_unittest.cc Add |extra_info| parameter for browser creation (fixes issue #1088) 2019-05-08 12:31:46 -04:00
osr_display_unittest.cc Add |extra_info| parameter for browser creation (fixes issue #1088) 2019-05-08 12:31:46 -04:00
parser_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
plugin_unittest.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
preference_unittest.cc Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
print_unittest.cc Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
process_message_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
request_context_unittest.cc Add |extra_info| parameter for browser creation (fixes issue #1088) 2019-05-08 12:31:46 -04:00
request_handler_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
request_unittest.cc Add NetworkService support for response filtering (see issue #2622). 2019-05-20 14:39:37 +03:00
resource.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
resource_manager_unittest.cc Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
resource_request_handler_unittest.cc Add NetworkService support for response filtering (see issue #2622). 2019-05-20 14:39:37 +03:00
resource_util_linux.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
resource_util_win_idmap.cc Update to Chromium revision 5fdc0fab (#520840) 2017-12-14 15:31:07 -05:00
routing_test_handler.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
routing_test_handler.h Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
run_all_unittests.cc Linux: Add support for ozone builds (fixes issue #2296). 2019-04-23 17:00:14 +00:00
run_all_unittests_mac.mm Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
scheme_handler_unittest.cc Add NetworkService support for CefURLRequest (see issue #2622). 2019-05-17 21:42:25 +03:00
scoped_temp_dir_unittest.cc Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
server_unittest.cc Fix NetworkService ServerTest.* failures and test name typo (see issue #2622). 2019-05-18 17:54:02 +03:00
stream_resource_handler_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
stream_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
string_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
task_unittest.cc Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
test_handler.cc Add |extra_info| parameter for browser creation (fixes issue #1088) 2019-05-08 12:31:46 -04:00
test_handler.h Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
test_suite.cc Linux: Add multi-threaded message loop support (issue #2512) 2018-09-20 15:17:35 +02:00
test_suite.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
test_util.cc Enable NetworkService by default (see issue #2622). 2019-05-20 19:42:44 +03:00
test_util.h Implement NetworkService request interception/handling (see issue #2622). 2019-04-23 22:53:28 -04:00
thread_helper.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
thread_helper.h Update to Chromium revision 66afc5e5 (#540276) 2018-03-22 16:56:23 -04:00
thread_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
tracing_unittest.cc Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
translator_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
urlrequest_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
v8_unittest.cc Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
values_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
version_unittest.cc Compute all version numbers using cef_version.py (see issue #2596) 2019-03-15 13:16:43 -04:00
waitable_event_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
webui_unittest.cc Add NetworkService support for chrome and chrome-devtools schemes (see issue #2622). 2019-04-30 17:16:42 -04:00
xml_reader_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
zip_reader_unittest.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00