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

Side by Side Diff: chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc

Issue 10919051: Move device notification impl out of chrome/browser/media_gallery (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: modify for chromeos and win Created 8 years, 3 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
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 // RemovableDeviceNotificationsLinux unit tests. 5 // RemovableDeviceNotificationsLinux unit tests.
6 6
7 #include "chrome/browser/media_gallery/removable_device_notifications_linux.h" 7 #include "chrome/browser/system_monitor/removable_device_notifications_linux.h"
8 8
9 #include <mntent.h> 9 #include <mntent.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/scoped_temp_dir.h" 18 #include "base/scoped_temp_dir.h"
19 #include "base/system_monitor/system_monitor.h" 19 #include "base/system_monitor/system_monitor.h"
20 #include "base/test/mock_devices_changed_observer.h" 20 #include "base/test/mock_devices_changed_observer.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "chrome/browser/media_gallery/media_storage_util.h" 22 #include "chrome/browser/system_monitor/media_storage_util.h"
23 #include "content/public/test/test_browser_thread.h" 23 #include "content/public/test/test_browser_thread.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 namespace chrome { 26 namespace chrome {
27 27
28 namespace { 28 namespace {
29 29
30 using testing::_; 30 using testing::_;
31 31
32 const char kValidFS[] = "vfat"; 32 const char kValidFS[] = "vfat";
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 EXPECT_TRUE(notifier()->GetDeviceInfoForPath(test_path_b, &device_info)); 716 EXPECT_TRUE(notifier()->GetDeviceInfoForPath(test_path_b, &device_info));
717 EXPECT_EQ(GetDeviceId(kDeviceFixed), device_info.device_id); 717 EXPECT_EQ(GetDeviceId(kDeviceFixed), device_info.device_id);
718 718
719 EXPECT_TRUE(notifier()->GetDeviceInfoForPath(test_path_c, &device_info)); 719 EXPECT_TRUE(notifier()->GetDeviceInfoForPath(test_path_c, &device_info));
720 EXPECT_EQ(GetDeviceId(kDeviceFixed), device_info.device_id); 720 EXPECT_EQ(GetDeviceId(kDeviceFixed), device_info.device_id);
721 } 721 }
722 722
723 } // namespace 723 } // namespace
724 724
725 } // namespace chrome 725 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/system_monitor/removable_device_notifications_linux.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698