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

Side by Side Diff: base/message_loop_unittest.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <vector> 5 #include <vector>
6 6
7 #include "base/eintr_wrapper.h" 7 #include "base/eintr_wrapper.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/threading/platform_thread.h" 12 #include "base/threading/platform_thread.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include "base/message_pump_win.h" 17 #include "base/message_pump_win.h"
18 #include "base/win/scoped_handle.h" 18 #include "base/win/scoped_handle.h"
19 #endif 19 #endif
20 #if defined(OS_POSIX) 20 #if defined(OS_POSIX)
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 loop->PostDelayedTask( 1761 loop->PostDelayedTask(
1762 FROM_HERE, 1762 FROM_HERE,
1763 new RunAtDestructionTask(&task_destroyed, &destruction_observer_called), 1763 new RunAtDestructionTask(&task_destroyed, &destruction_observer_called),
1764 kDelayMS); 1764 kDelayMS);
1765 delete loop; 1765 delete loop;
1766 EXPECT_TRUE(observer.task_destroyed_before_message_loop()); 1766 EXPECT_TRUE(observer.task_destroyed_before_message_loop());
1767 // The task should have been destroyed when we deleted the loop. 1767 // The task should have been destroyed when we deleted the loop.
1768 EXPECT_TRUE(task_destroyed); 1768 EXPECT_TRUE(task_destroyed);
1769 EXPECT_TRUE(destruction_observer_called); 1769 EXPECT_TRUE(destruction_observer_called);
1770 } 1770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698