shill: Setup Iptable entries for ThirdPartyVpn using PermissionBroker

This CL makes shill setup iptables entries to mark traffic from user
dynamically using a proxy to permission broker.

BUG=chromium:458075
TEST=Manual testing
CQ-DEPEND=CL:249140

Change-Id: Ic376c67b588ae0f82abeb6b7fab31051cd6d08a4
Reviewed-on: https://chromium-review.googlesource.com/250290
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Prabhu Kaliamoorthi <kaliamoorthi@chromium.org>
Commit-Queue: Prabhu Kaliamoorthi <kaliamoorthi@chromium.org>
diff --git a/mock_permission_broker_proxy.h b/mock_permission_broker_proxy.h
new file mode 100644
index 0000000..8e39194
--- /dev/null
+++ b/mock_permission_broker_proxy.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_MOCK_PERMISSION_BROKER_PROXY_H_
+#define SHILL_MOCK_PERMISSION_BROKER_PROXY_H_
+
+#include "shill/permission_broker_proxy.h"
+
+#include <string>
+#include <vector>
+
+namespace shill {
+
+class MockPermissionBrokerProxy : public PermissionBrokerProxyInterface {
+ public:
+  MockPermissionBrokerProxy() {}
+  ~MockPermissionBrokerProxy() override {}
+
+  MOCK_METHOD2(RequestVpnSetup, bool(const std::vector<std::string>& user_names,
+                                     const std::string& interface));
+  MOCK_METHOD0(RemoveVpnSetup, bool());
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(MockPermissionBrokerProxy);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_MOCK_PERMISSION_BROKER_PROXY_H_