OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/skia_benchmarking_extension.h" | 5 #include "content/renderer/skia_benchmarking_extension.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/values.h" | 9 #include "base/values.h" |
8 #include "skia/ext/benchmarking_canvas.h" | 10 #include "skia/ext/benchmarking_canvas.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
11 #include "third_party/skia/include/core/SkGraphics.h" | 13 #include "third_party/skia/include/core/SkGraphics.h" |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 testing::AssertionResult HasArg(const base::ListValue* args, | 17 testing::AssertionResult HasArg(const base::ListValue* args, |
16 const char name[]) { | 18 const char name[]) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 EXPECT_TRUE(HasArg(op_args, "paint")); | 98 EXPECT_TRUE(HasArg(op_args, "paint")); |
97 | 99 |
98 ASSERT_TRUE(ops.GetDictionary(index++, &op)); | 100 ASSERT_TRUE(ops.GetDictionary(index++, &op)); |
99 EXPECT_TRUE(op->GetString("cmd_string", &op_name)); | 101 EXPECT_TRUE(op->GetString("cmd_string", &op_name)); |
100 EXPECT_EQ(op_name, "Restore"); | 102 EXPECT_EQ(op_name, "Restore"); |
101 ASSERT_TRUE(op->GetList("info", &op_args)); | 103 ASSERT_TRUE(op->GetList("info", &op_args)); |
102 EXPECT_EQ(op_args->GetSize(), static_cast<size_t>(0)); | 104 EXPECT_EQ(op_args->GetSize(), static_cast<size_t>(0)); |
103 } | 105 } |
104 | 106 |
105 } // namespace content | 107 } // namespace content |
OLD | NEW |