| 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 "mojo/common/message_pump_mojo.h" | 5 #include "mojo/common/message_pump_mojo.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop_test.h" | 7 #include "base/message_loop/message_loop_test.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace common { | 11 namespace common { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 base::MessagePump* CreateMojoMessagePump() { | 14 scoped_ptr<base::MessagePump> CreateMojoMessagePump() { |
| 15 return new MessagePumpMojo(); | 15 return scoped_ptr<base::MessagePump>(new MessagePumpMojo()); |
| 16 } | 16 } |
| 17 | 17 |
| 18 RUN_MESSAGE_LOOP_TESTS(Mojo, &CreateMojoMessagePump); | 18 RUN_MESSAGE_LOOP_TESTS(Mojo, &CreateMojoMessagePump); |
| 19 | 19 |
| 20 } // namespace test | 20 } // namespace test |
| 21 } // namespace common | 21 } // namespace common |
| 22 } // namespace mojo | 22 } // namespace mojo |
| OLD | NEW |