| Index: remoting/host/differ_unittest.cc
|
| diff --git a/remoting/host/differ_unittest.cc b/remoting/host/differ_unittest.cc
|
| index f6156f3e22f236d77cd187826ca0857cb7df7213..1728a7344f5f41d42f4291cf04c933383fd48889 100644
|
| --- a/remoting/host/differ_unittest.cc
|
| +++ b/remoting/host/differ_unittest.cc
|
| @@ -4,14 +4,14 @@
|
|
|
| #include "base/scoped_ptr.h"
|
| #include "remoting/host/differ.h"
|
| +#include "remoting/host/differ_block.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| namespace remoting {
|
|
|
| -// 96x96 screen gives a 3x3 grid of blocks.
|
| +// 96x96 screen gives a 4x4 grid of blocks.
|
| const int kScreenWidth= 96;
|
| const int kScreenHeight = 96;
|
| -const int kBytesPerPixel = 3;
|
| const int kBytesPerRow = (kBytesPerPixel * kScreenWidth);
|
|
|
| class DifferTest : public testing::Test {
|
| @@ -50,9 +50,9 @@ class DifferTest : public testing::Test {
|
| // Offset from upper-left of buffer to upper-left of requested block.
|
| int block_offset = ((block_y * stride_) + (block_x * bytes_per_pixel_))
|
| * kBlockSize;
|
| - return differ_->DiffBlock(prev_.get() + block_offset,
|
| - curr_.get() + block_offset,
|
| - stride_);
|
| + return BlockDifference(prev_.get() + block_offset,
|
| + curr_.get() + block_offset,
|
| + stride_);
|
| }
|
|
|
| // Write the pixel |value| into the specified block in the |buffer|.
|
|
|