projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79a391
)
That last CL subverted the purpose of the test. Put it back how it was.
author
mtklein
<mtklein@chromium.org>
Wed, 1 Apr 2015 20:36:23 +0000
(13:36 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 1 Apr 2015 20:36:23 +0000
(13:36 -0700)
BUG=skia:
Review URL: https://codereview.chromium.org/
1055633003
tests/FunctionTest.cpp
patch
|
blob
|
history
diff --git
a/tests/FunctionTest.cpp
b/tests/FunctionTest.cpp
index 01ba5885a898457ba3989e780bc6323a0c927194..0feef7c04c00cd54e3a81c0bd903ff754e97ce5d 100644
(file)
--- a/
tests/FunctionTest.cpp
+++ b/
tests/FunctionTest.cpp
@@
-44,7
+44,8
@@
DEF_TEST(Function, r) {
test_add_five(r, MoveOnlyAdd5());
// Makes sure we forward arguments when calling SkFunction.
- REPORTER_ASSERT(r, [](int x, MoveOnlyAdd5&& f, int y) {
- return x * f(y);
- }(2, MoveOnlyAdd5(), 4) == 18);
+ SkFunction<int(int, MoveOnlyAdd5&&, int)> f([](int x, MoveOnlyAdd5&& addFive, int y) {
+ return x * addFive(y);
+ });
+ REPORTER_ASSERT(r, f(2, MoveOnlyAdd5(), 4) == 18);
}