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

Unified Diff: remoting/test/app_remoting_latency_test_fixture.cc

Issue 1219923011: Added image pattern comparison logic for test interface and fixture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Minor update on comments" Created 5 years, 5 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
« no previous file with comments | « remoting/test/app_remoting_latency_test_fixture.h ('k') | remoting/test/test_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_latency_test_fixture.cc
diff --git a/remoting/test/app_remoting_latency_test_fixture.cc b/remoting/test/app_remoting_latency_test_fixture.cc
index 775a11498a14f4a00c994d74bf22ca09a53b35e7..872353596c190d66bcb5efe6dff28998468f48df 100644
--- a/remoting/test/app_remoting_latency_test_fixture.cc
+++ b/remoting/test/app_remoting_latency_test_fixture.cc
@@ -51,16 +51,15 @@ void AppRemotingLatencyTestFixture::TearDown() {
void AppRemotingLatencyTestFixture::SetExpectedImagePattern(
const webrtc::DesktopRect& expected_rect,
- const RgbaColor& expected_color) {
+ uint32_t expected_color) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!run_loop_ || !run_loop_->running());
run_loop_.reset(new base::RunLoop());
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE,
- base::Bind(&TestVideoRenderer::SetImagePatternAndMatchedCallback,
- test_video_renderer_, expected_rect, expected_color,
- run_loop_->QuitClosure()));
+ FROM_HERE, base::Bind(&TestVideoRenderer::ExpectAverageColorInRect,
+ test_video_renderer_, expected_rect, expected_color,
+ run_loop_->QuitClosure()));
}
bool AppRemotingLatencyTestFixture::WaitForImagePatternMatched(
« no previous file with comments | « remoting/test/app_remoting_latency_test_fixture.h ('k') | remoting/test/test_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698