| Index: chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc
|
| index 756a582194c843c09714ecbc745c466c1187fa9b..bd685c88124aef9577b17291d77f4735501b07e6 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc
|
| @@ -38,7 +38,7 @@ class BluetoothApiTest : public PlatformAppApiTest {
|
| UIThreadExtensionFunction* function,
|
| const std::string& args) {
|
| scoped_ptr<base::Value> result(
|
| - utils::RunFunctionAndReturnResult(function, args, browser()));
|
| + utils::RunFunctionAndReturnSingleResult(function, args, browser()));
|
| ASSERT_TRUE(result.get() != NULL);
|
| ASSERT_EQ(base::Value::TYPE_BOOLEAN, result->GetType());
|
| bool boolean_value;
|
| @@ -147,7 +147,7 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, GetDevices) {
|
| scoped_refptr<api::BluetoothGetDevicesFunction> get_devices;
|
|
|
| get_devices = setupFunction(new api::BluetoothGetDevicesFunction);
|
| - scoped_ptr<base::Value> result(utils::RunFunctionAndReturnResult(
|
| + scoped_ptr<base::Value> result(utils::RunFunctionAndReturnSingleResult(
|
| get_devices,
|
| "[{\"uuid\":\"foo\"}]",
|
| browser()));
|
| @@ -186,7 +186,7 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, GetDevices) {
|
|
|
| get_devices = setupFunction(new api::BluetoothGetDevicesFunction);
|
| result.reset(
|
| - utils::RunFunctionAndReturnResult(get_devices, "[{}]", browser()));
|
| + utils::RunFunctionAndReturnSingleResult(get_devices, "[{}]", browser()));
|
|
|
| ASSERT_EQ(base::Value::TYPE_LIST, result->GetType());
|
| ASSERT_TRUE(result->GetAsList(&list));
|
| @@ -204,8 +204,8 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, GetLocalOutOfBandPairingData) {
|
| get_oob_function(setupFunction(
|
| new api::BluetoothGetLocalOutOfBandPairingDataFunction));
|
|
|
| - scoped_ptr<base::Value> result(
|
| - utils::RunFunctionAndReturnResult(get_oob_function, "[]", browser()));
|
| + scoped_ptr<base::Value> result(utils::RunFunctionAndReturnSingleResult(
|
| + get_oob_function, "[]", browser()));
|
|
|
| base::DictionaryValue* dict;
|
| EXPECT_TRUE(result->GetAsDictionary(&dict));
|
| @@ -253,7 +253,8 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, SetOutOfBandPairingData) {
|
| set_oob_function = setupFunction(
|
| new api::BluetoothSetOutOfBandPairingDataFunction);
|
| // There isn't actually a result.
|
| - (void)utils::RunFunctionAndReturnResult(set_oob_function, params, browser());
|
| + (void)utils::RunFunctionAndReturnSingleResult(
|
| + set_oob_function, params, browser());
|
|
|
| // Try again with an error
|
| testing::Mock::VerifyAndClearExpectations(mock_adapter_);
|
| @@ -309,7 +310,7 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, Discovery) {
|
| testing::_));
|
| scoped_refptr<api::BluetoothStopDiscoveryFunction> stop_function;
|
| stop_function = setupFunction(new api::BluetoothStopDiscoveryFunction);
|
| - (void)utils::RunFunctionAndReturnResult(stop_function, "[]", browser());
|
| + (void)utils::RunFunctionAndReturnSingleResult(stop_function, "[]", browser());
|
|
|
| // TODO(bryeung): test that no events are sent now (crbug.com/132616)
|
|
|
|
|