shill: vpn: Associate VPN device with service and update IP configuration.
BUG=chromium-os:27384,chromium-os:27385
TEST=unit tests
Change-Id: I5b35bebeadd25f50f7044d2e4ec5bc121a56835e
Reviewed-on: https://gerrit.chromium.org/gerrit/17488
Commit-Ready: Darin Petkov <petkov@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
diff --git a/mock_vpn_service.h b/mock_vpn_service.h
new file mode 100644
index 0000000..a6b5640
--- /dev/null
+++ b/mock_vpn_service.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 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_VPN_SERVICE_
+#define SHILL_MOCK_VPN_SERVICE_
+
+#include <gmock/gmock.h>
+
+#include "shill/vpn_service.h"
+
+namespace shill {
+
+class MockVPNService : public VPNService {
+ public:
+ MockVPNService(ControlInterface *control,
+ EventDispatcher *dispatcher,
+ Metrics *metrics,
+ Manager *manager,
+ VPNDriver *driver);
+ virtual ~MockVPNService();
+
+ MOCK_METHOD1(SetState, void(ConnectState state));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockVPNService);
+};
+
+} // namespace shill
+
+#endif // SHILL_MOCK_VPN_SERVICE_