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

Unified Diff: mojo/services/view_manager/view_manager_connection_unittest.cc

Issue 272833002: View synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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
Index: mojo/services/view_manager/view_manager_connection_unittest.cc
diff --git a/mojo/services/view_manager/view_manager_connection_unittest.cc b/mojo/services/view_manager/view_manager_connection_unittest.cc
index 6c71f39de2c3608410169bcc174f6610b3b90139..7775e26c56c0c93093c78fc00fd4c1d7166b4f6b 100644
--- a/mojo/services/view_manager/view_manager_connection_unittest.cc
+++ b/mojo/services/view_manager/view_manager_connection_unittest.cc
@@ -232,6 +232,14 @@ class ViewManagerClientImpl : public IViewManagerClient {
static_cast<int>(change_id), NodeIdToString(node).c_str()));
QuitIfNecessary();
}
+ virtual void OnViewDeleted(TransportViewId view,
+ TransportChangeId change_id) OVERRIDE {
+ changes_.push_back(
+ base::StringPrintf(
+ "change_id=%d view=%s deleted",
+ static_cast<int>(change_id), NodeIdToString(view).c_str()));
+ QuitIfNecessary();
+ }
void QuitIfNecessary() {
if (quit_count_ > 0 && --quit_count_ == 0)

Powered by Google App Engine
This is Rietveld 408576698