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

Unified Diff: chromeos/network/firewall_hole_unittest.cc

Issue 1034333002: Check USB device path access when prompting users to select a device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Have MockPermissionBrokerClient extend FakePermissionBrokerClient to avoid adding mocks for unrelat… Created 5 years, 9 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
« no previous file with comments | « chromeos/dbus/permission_broker_client.cc ('k') | device/usb/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/firewall_hole_unittest.cc
diff --git a/chromeos/network/firewall_hole_unittest.cc b/chromeos/network/firewall_hole_unittest.cc
index ea5f5ec300ce58a00e9e01470564059e3d9e41af..fb182053f55111e524b0590024f5b91bed679abe 100644
--- a/chromeos/network/firewall_hole_unittest.cc
+++ b/chromeos/network/firewall_hole_unittest.cc
@@ -23,16 +23,12 @@ ACTION_TEMPLATE(InvokeCallback,
::std::tr1::get<k>(args).Run(p1);
}
-class MockPermissionsBrokerClient : public chromeos::PermissionBrokerClient {
+class MockPermissionsBrokerClient
+ : public chromeos::FakePermissionBrokerClient {
pneubeck (no reviews) 2015/04/07 07:57:38 nothing of that fake is actually used. If anything
Reilly Grant (use Gerrit) 2015/04/07 20:12:10 I've moved MockPermissionBrokerClient into its own
public:
MockPermissionsBrokerClient() {}
~MockPermissionsBrokerClient() override {}
- MOCK_METHOD1(Init, void(dbus::Bus* bus));
- MOCK_METHOD3(RequestPathAccess,
- void(const std::string& path,
- int interface_id,
- const ResultCallback& callback));
MOCK_METHOD4(RequestTcpPortAccess,
void(uint16 port,
const std::string& interface,
« no previous file with comments | « chromeos/dbus/permission_broker_client.cc ('k') | device/usb/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698