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

Unified Diff: content/browser/bluetooth/bluetooth_blocklist_unittest.cc

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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: content/browser/bluetooth/bluetooth_blocklist_unittest.cc
diff --git a/content/browser/bluetooth/bluetooth_blocklist_unittest.cc b/content/browser/bluetooth/bluetooth_blocklist_unittest.cc
index 9e171ca4eaec2f041f430aee2cc8ebf7b4665b17..cc24bc00049f77327449b1148cdc747abc101cb8 100644
--- a/content/browser/bluetooth/bluetooth_blocklist_unittest.cc
+++ b/content/browser/bluetooth/bluetooth_blocklist_unittest.cc
@@ -276,7 +276,7 @@ TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsFalse) {
TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsTrue) {
list_.Add(BluetoothUUID("eeee"), BluetoothBlocklist::Value::EXCLUDE);
{
- mojo::Array<blink::mojom::WebBluetoothScanFilterPtr> single_matching_filter(
+ std::vector<blink::mojom::WebBluetoothScanFilterPtr> single_matching_filter(
1);
single_matching_filter[0] = blink::mojom::WebBluetoothScanFilter::New();
@@ -286,7 +286,7 @@ TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsTrue) {
EXPECT_TRUE(list_.IsExcluded(single_matching_filter));
}
{
- mojo::Array<blink::mojom::WebBluetoothScanFilterPtr> first_matching_filter(
+ std::vector<blink::mojom::WebBluetoothScanFilterPtr> first_matching_filter(
2);
first_matching_filter[0] = blink::mojom::WebBluetoothScanFilter::New();
@@ -302,7 +302,7 @@ TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsTrue) {
EXPECT_TRUE(list_.IsExcluded(first_matching_filter));
}
{
- mojo::Array<blink::mojom::WebBluetoothScanFilterPtr> last_matching_filter(
+ std::vector<blink::mojom::WebBluetoothScanFilterPtr> last_matching_filter(
2);
last_matching_filter[0] = blink::mojom::WebBluetoothScanFilter::New();
@@ -318,7 +318,7 @@ TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsTrue) {
EXPECT_TRUE(list_.IsExcluded(last_matching_filter));
}
{
- mojo::Array<blink::mojom::WebBluetoothScanFilterPtr>
+ std::vector<blink::mojom::WebBluetoothScanFilterPtr>
multiple_matching_filters(2);
multiple_matching_filters[0] = blink::mojom::WebBluetoothScanFilter::New();

Powered by Google App Engine
This is Rietveld 408576698