| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/callback.h" | 5 #include "base/callback.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "cc/debug/micro_benchmark.h" | 7 #include "cc/debug/micro_benchmark.h" |
| 8 #include "cc/debug/micro_benchmark_controller.h" | 8 #include "cc/debug/micro_benchmark_controller.h" |
| 9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "cc/layers/layer_settings.h" |
| 10 #include "cc/test/fake_impl_task_runner_provider.h" | 11 #include "cc/test/fake_impl_task_runner_provider.h" |
| 11 #include "cc/test/fake_layer_tree_host.h" | 12 #include "cc/test/fake_layer_tree_host.h" |
| 12 #include "cc/test/fake_layer_tree_host_impl.h" | 13 #include "cc/test/fake_layer_tree_host_impl.h" |
| 13 #include "cc/test/fake_proxy.h" | 14 #include "cc/test/fake_proxy.h" |
| 14 #include "cc/test/test_task_graph_runner.h" | 15 #include "cc/test/test_task_graph_runner.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Send invalid message to valid benchmark | 174 // Send invalid message to valid benchmark |
| 174 message = make_scoped_ptr(new base::DictionaryValue); | 175 message = make_scoped_ptr(new base::DictionaryValue); |
| 175 message->SetBoolean("can_handle", false); | 176 message->SetBoolean("can_handle", false); |
| 176 message_handled = | 177 message_handled = |
| 177 layer_tree_host_->SendMessageToMicroBenchmark(id, message.Pass()); | 178 layer_tree_host_->SendMessageToMicroBenchmark(id, message.Pass()); |
| 178 EXPECT_FALSE(message_handled); | 179 EXPECT_FALSE(message_handled); |
| 179 } | 180 } |
| 180 | 181 |
| 181 } // namespace | 182 } // namespace |
| 182 } // namespace cc | 183 } // namespace cc |
| OLD | NEW |