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

Side by Side Diff: tests/RecordingTest.cpp

Issue 345753007: Preprend Test to test function name generated by DEF_TEST() macro. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: test_ Created 6 years, 6 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
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tests/SkBase64Test.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Test.h" 8 #include "Test.h"
9 9
10 #include "../include/record/SkRecording.h" 10 #include "../include/record/SkRecording.h"
11 11
12 // Minimally exercise the public SkRecording API. 12 // Minimally exercise the public SkRecording API.
13 13
14 DEF_TEST(RecordingTest, r) { 14 DEF_TEST(SkRecording, r) {
15 EXPERIMENTAL::SkRecording recording(1920, 1080); 15 EXPERIMENTAL::SkRecording recording(1920, 1080);
16 16
17 // Some very exciting commands here. 17 // Some very exciting commands here.
18 recording.canvas()->clipRect(SkRect::MakeWH(320, 240)); 18 recording.canvas()->clipRect(SkRect::MakeWH(320, 240));
19 19
20 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(recording.releasePlay back()); 20 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(recording.releasePlay back());
21 21
22 SkCanvas target; 22 SkCanvas target;
23 playback->draw(&target); 23 playback->draw(&target);
24 24
25 // Here's another recording we never call releasePlayback(). 25 // Here's another recording we never call releasePlayback().
26 // However pointless, this should be safe. 26 // However pointless, this should be safe.
27 EXPERIMENTAL::SkRecording pointless(1920, 1080); 27 EXPERIMENTAL::SkRecording pointless(1920, 1080);
28 pointless.canvas()->clipRect(SkRect::MakeWH(320, 240)); 28 pointless.canvas()->clipRect(SkRect::MakeWH(320, 240));
29 } 29 }
OLDNEW
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tests/SkBase64Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698