diff options
author | liaoyuke <liaoyuke@chromium.org> | 2015-07-13 16:25:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-13 23:26:15 +0000 |
commit | 55bcb47addbc50f753487a73fb13ed5e370ae169 (patch) | |
tree | 77a31fc3413e13752058379923cc3eb9b9809a76 /remoting/test/app_remoting_latency_test_fixture.h | |
parent | 3a8d7ac6bef0ac0609ba5552fe1cf393230466dd (diff) | |
download | chromium_src-55bcb47addbc50f753487a73fb13ed5e370ae169.zip chromium_src-55bcb47addbc50f753487a73fb13ed5e370ae169.tar.gz chromium_src-55bcb47addbc50f753487a73fb13ed5e370ae169.tar.bz2 |
Added image pattern comparison logic including unit tests.
The Image pattern comparison logic is: calculate the average color of the expected rect region on the current frame and compare it to the expected color to see if it matches.
BUG=
Review URL: https://codereview.chromium.org/1219923011
Cr-Commit-Position: refs/heads/master@{#338588}
Diffstat (limited to 'remoting/test/app_remoting_latency_test_fixture.h')
-rw-r--r-- | remoting/test/app_remoting_latency_test_fixture.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/remoting/test/app_remoting_latency_test_fixture.h b/remoting/test/app_remoting_latency_test_fixture.h index 1cebe84..bc2572a 100644 --- a/remoting/test/app_remoting_latency_test_fixture.h +++ b/remoting/test/app_remoting_latency_test_fixture.h @@ -30,8 +30,6 @@ struct RemoteApplicationDetails; class AppRemotingConnectionHelper; class TestVideoRenderer; -typedef uint32 RgbaColor; - // Creates a connection to a remote host which is available for tests to use. // Provides convenient methods to create test cases to measure the input and // rendering latency between client and the remote host. @@ -46,7 +44,7 @@ class AppRemotingLatencyTestFixture : public testing::Test { // Set expected image pattern for comparison and a matched reply will be // called when the pattern is matched. void SetExpectedImagePattern(const webrtc::DesktopRect& expected_rect, - const RgbaColor& expected_color); + uint32_t expected_avg_color); // Waits for an image pattern matched reply up to |max_wait_time|. Returns // true if we received a response within the maximum time limit. @@ -54,7 +52,7 @@ class AppRemotingLatencyTestFixture : public testing::Test { bool WaitForImagePatternMatched(const base::TimeDelta& max_wait_time); // Name of the application being tested. - // NOTE: must be initialized in the constructor of derived class. + // NOTE: Must be initialized in the constructor of derived class. std::string application_name_; private: |