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

Side by Side Diff: src/animator/SkScript.cpp

Issue 22732004: Fix build with SK_SUPPORT_UNITTEST on (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/animator/SkScriptTokenizer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkScript.h" 10 #include "SkScript.h"
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 testFalse('2'==11.), 1833 testFalse('2'==11.),
1834 // string, string 1834 // string, string
1835 testFalse('2'<'2'), 1835 testFalse('2'<'2'),
1836 testFalse('2'<'11'), 1836 testFalse('2'<'11'),
1837 testFalse('20'<'11'), 1837 testFalse('20'<'11'),
1838 testTrue('2'=='2'), 1838 testTrue('2'=='2'),
1839 testFalse('2'=='11'), 1839 testFalse('2'=='11'),
1840 // logic 1840 // logic
1841 testInt(1?2:3), 1841 testInt(1?2:3),
1842 testInt(0?2:3), 1842 testInt(0?2:3),
1843 testInt(1&&2||3), 1843 testInt((1&&2)||3),
1844 testInt(1&&0||3), 1844 testInt((1&&0)||3),
1845 testInt(1&&0||0), 1845 testInt((1&&0)||0),
1846 testInt(1||0&&3), 1846 testInt(1||(0&&3)),
1847 testInt(0||0&&3), 1847 testInt(0||(0&&3)),
1848 testInt(0||1&&3), 1848 testInt(0||(1&&3)),
1849 testInt(1?(2?3:4):5), 1849 testInt(1?(2?3:4):5),
1850 testInt(0?(2?3:4):5), 1850 testInt(0?(2?3:4):5),
1851 testInt(1?(0?3:4):5), 1851 testInt(1?(0?3:4):5),
1852 testInt(0?(0?3:4):5), 1852 testInt(0?(0?3:4):5),
1853 testInt(1?2?3:4:5), 1853 testInt(1?2?3:4:5),
1854 testInt(0?2?3:4:5), 1854 testInt(0?2?3:4:5),
1855 testInt(1?0?3:4:5), 1855 testInt(1?0?3:4:5),
1856 testInt(0?0?3:4:5), 1856 testInt(0?0?3:4:5),
1857 1857
1858 testInt(1?2:(3?4:5)), 1858 testInt(1?2:(3?4:5)),
(...skipping 27 matching lines...) Expand all
1886 break; 1886 break;
1887 case SkType_String: 1887 case SkType_String:
1888 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[ind ex].fStringAnswer) == 0); 1888 SkASSERT(strcmp(value.fOperand.fString->c_str(), scriptTests[ind ex].fStringAnswer) == 0);
1889 break; 1889 break;
1890 default: 1890 default:
1891 SkASSERT(0); 1891 SkASSERT(0);
1892 } 1892 }
1893 } 1893 }
1894 } 1894 }
1895 #endif 1895 #endif
OLDNEW
« no previous file with comments | « no previous file | src/animator/SkScriptTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698