shill: Define mock constructors/destructors in .cc files -- round 1.
The intent is to make compilation faster. See bug report for more info. More to
come.
BUG=chromium-os:19691
TEST=unit tests
Change-Id: Icedbfa7ea21224cc818d3708eebd5582bc11ab4d
Reviewed-on: http://gerrit.chromium.org/gerrit/6773
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
diff --git a/mock_dhcp_config.h b/mock_dhcp_config.h
index 3572e82..6f27cc0 100644
--- a/mock_dhcp_config.h
+++ b/mock_dhcp_config.h
@@ -5,6 +5,7 @@
#ifndef SHILL_MOCK_DHCP_CONFIG_H_
#define SHILL_MOCK_DHCP_CONFIG_H_
+#include <base/basictypes.h>
#include <gmock/gmock.h>
#include "shill/dhcp_config.h"
@@ -17,14 +18,13 @@
EventDispatcher *dispatcher,
DHCPProvider *provider,
const std::string &device_name,
- GLib *glib)
- : DHCPConfig(control_interface,
- dispatcher,
- provider,
- device_name,
- glib) {}
+ GLib *glib);
+ virtual ~MockDHCPConfig();
MOCK_METHOD0(RequestIP, bool());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockDHCPConfig);
};
} // namespace shill