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

Unified Diff: sky/viewer/internals.cc

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years 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 | « sky/viewer/document_view.cc ('k') | sky/viewer/viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/internals.cc
diff --git a/sky/viewer/internals.cc b/sky/viewer/internals.cc
index 0288b9cc30d296a29a1f2fc1121100dd524c6f6d..99e8c3bef07240ac249e64f17567318dbfef5497 100644
--- a/sky/viewer/internals.cc
+++ b/sky/viewer/internals.cc
@@ -8,6 +8,7 @@
#include "mojo/edk/js/handle.h"
#include "mojo/edk/js/support.h"
#include "mojo/public/cpp/application/connect.h"
+#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/interfaces/application/shell.mojom.h"
#include "sky/engine/public/web/WebDocument.h"
#include "sky/engine/public/web/WebFrame.h"
@@ -65,7 +66,10 @@ std::string Internals::ContentAsText() {
}
void Internals::NotifyTestComplete(const std::string& test_result) {
- test_harness_->OnTestComplete(test_result);
+ std::vector<unsigned char> pixels;
+ document_view_->GetPixelsForTesting(&pixels);
+ test_harness_->OnTestComplete(test_result,
+ mojo::Array<uint8_t>::From(pixels));
}
mojo::Handle Internals::ConnectToService(
« no previous file with comments | « sky/viewer/document_view.cc ('k') | sky/viewer/viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698