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

Side by Side Diff: chrome/browser/storage_monitor/storage_monitor_unittest.cc

Issue 19479003: Use a direct include of the message_loop header in chrome/browser/, part 10. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "base/synchronization/waitable_event.h" 7 #include "base/synchronization/waitable_event.h"
8 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h" 8 #include "chrome/browser/storage_monitor/mock_removable_storage_observer.h"
9 #include "chrome/browser/storage_monitor/storage_monitor.h" 9 #include "chrome/browser/storage_monitor/storage_monitor.h"
10 #include "chrome/browser/storage_monitor/test_storage_monitor.h" 10 #include "chrome/browser/storage_monitor/test_storage_monitor.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 TEST(StorageMonitorTest, TestInitialize) { 15 TEST(StorageMonitorTest, TestInitialize) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 EXPECT_EQ(kDeviceName2, devices[0].name()); 119 EXPECT_EQ(kDeviceName2, devices[0].name());
120 EXPECT_EQ(kDevicePath2.value(), devices[0].location()); 120 EXPECT_EQ(kDevicePath2.value(), devices[0].location());
121 121
122 monitor.receiver()->ProcessDetach(kDeviceId2); 122 monitor.receiver()->ProcessDetach(kDeviceId2);
123 message_loop.RunUntilIdle(); 123 message_loop.RunUntilIdle();
124 devices = monitor.GetAllAvailableStorages(); 124 devices = monitor.GetAllAvailableStorages();
125 EXPECT_EQ(0U, devices.size()); 125 EXPECT_EQ(0U, devices.size());
126 } 126 }
127 127
128 } // namespace chrome 128 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698