OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #include "SkTraceMemoryDump.h" | |
9 | |
10 #include "SkString.h" | |
11 #include "Test.h" | |
12 | |
13 /* | |
14 * Build test for SkTraceMemoryDump. | |
15 */ | |
16 SkTraceMemoryDump::~SkTraceMemoryDump() {} | |
ericrk
2015/08/19 12:45:28
This is a bit odd? shouldn't be needed if you inli
Primiano Tucci (use gerrit)
2015/08/20 08:48:01
Done.
| |
17 | |
18 class TestSkTraceMemoryDump : public SkTraceMemoryDump { | |
19 public: | |
20 TestSkTraceMemoryDump() {} | |
21 virtual ~TestSkTraceMemoryDump() {} | |
ericrk
2015/08/19 12:45:28
override not virtual?
Primiano Tucci (use gerrit)
2015/08/20 08:48:01
Done.
| |
22 | |
23 void DumpScalarValue(const SkString &dumpName, const char *name, | |
24 const char *units, uint64_t value) override {} | |
25 | |
26 void SetMemoryBacking(const SkString &dumpName, const SkString &backingType, | |
27 const SkString &backingObjectId) override{}; | |
28 void SetDiscardableMemoryBacking( | |
29 const SkString &dumpName, | |
30 const SkDiscardableMemory &discardableMemoryObject) override {} | |
31 }; | |
32 | |
33 DEF_TEST(SkTraceMemoryDump, reporter) { | |
34 TestSkTraceMemoryDump x; | |
35 x.DumpScalarValue(SkString("foo"), "size", "bytes", 42); | |
36 } | |
OLD | NEW |