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

Side by Side Diff: mojo/common/message_pump_mojo_unittest.cc

Issue 185413019: Used scoped_ptr in InitMessagePumpForUIFactory and CreateMessagePumpForType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes in accordance to build fail for linux chromeos Created 6 years, 9 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 | « content/test/content_test_launcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « content/test/content_test_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698