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

Unified Diff: chrome/browser/media_gallery/media_device_notifications_window_win_unittest.cc

Issue 10780023: Change base::SystemMonitor's media device functions to take a type and string16 instead of a FilePa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_gallery/media_device_notifications_window_win_unittest.cc
===================================================================
--- chrome/browser/media_gallery/media_device_notifications_window_win_unittest.cc (revision 147551)
+++ chrome/browser/media_gallery/media_device_notifications_window_win_unittest.cc (working copy)
@@ -13,7 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/scoped_temp_dir.h"
-#include "base/sys_string_conversions.h"
+#include "base/string_number_conversions.h"
#include "base/system_monitor/system_monitor.h"
#include "base/test/mock_devices_changed_observer.h"
#include "content/public/test/test_browser_thread.h"
@@ -98,10 +98,13 @@
volume_broadcast.dbcv_unitmask |= 0x1 << *it;
std::wstring drive(L"_:\\");
drive[0] = 'A' + *it;
- std::string name("V");
- name.append(base::SysWideToUTF8(drive));
- EXPECT_CALL(observer_, OnMediaDeviceAttached(*it, name, FilePath(drive))).
- Times(0);
+ FilePath::StringType name = L"V" + drive;
+ EXPECT_CALL(observer_,
+ OnMediaDeviceAttached(base::IntToString(*it),
+ name,
+ base::SystemMonitor::TYPE_PATH,
+ drive))
+ .Times(0);
}
}
window_->OnDeviceChange(DBT_DEVICEARRIVAL,

Powered by Google App Engine
This is Rietveld 408576698