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

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc

Issue 2518933004: Add multiple selection support to chooser on desktops (Closed)
Patch Set: address comments Created 4 years, 1 month 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/ui/bluetooth/bluetooth_chooser_controller_unittest.cc
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc
index 414ac09573b2c4f2b3a1d513af451545cd2304f5..27e4671d827e02398b121f5244e72467cb61b1b3 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc
@@ -351,7 +351,9 @@ TEST_F(BluetoothChooserControllerWithDevicesAddedTest, RefreshOptions) {
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
SelectingOneDeviceShouldCallEventHandler) {
- bluetooth_chooser_controller_.Select(0);
+ std::vector<size_t> indices;
+ indices.push_back(0);
Reilly Grant (use Gerrit) 2016/11/22 20:55:27 std::vector<size_t> indices{1};
juncai 2016/11/22 23:12:06 Done.
+ bluetooth_chooser_controller_.Select(indices);
EXPECT_EQ(content::BluetoothChooser::Event::SELECTED, last_event_);
EXPECT_EQ("id_a", last_device_id_);
}

Powered by Google App Engine
This is Rietveld 408576698