diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-05 19:02:37 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-05 19:02:37 +0000 |
commit | d3758af7ccc568e0dffa8e33c6a9d950d564c97f (patch) | |
tree | aec1ac67ddb61f14004a55b9b6adef9a8a74a769 /components/wifi/wifi_service.h | |
parent | 2a898d3e8c91a83dfc998d8e06acc42d88d7995b (diff) | |
download | chromium_src-d3758af7ccc568e0dffa8e33c6a9d950d564c97f.zip chromium_src-d3758af7ccc568e0dffa8e33c6a9d950d564c97f.tar.gz chromium_src-d3758af7ccc568e0dffa8e33c6a9d950d564c97f.tar.bz2 |
components: Do not include test code in wifi_component target.
wifi_component target is production code target and thus should not
include code that is intended for tests.
This changes makes it stop building test code in wifi_component, by
extracting and exposing the FakeWiFiService interface in the header
file and instantiating it directly where we used to call
WiFiService::CreateForTest().
This is the second part of what was discussed in
https://codereview.chromium.org/243343002 and started here
https://codereview.chromium.org/259543002/ - r266025
BUG=None
TEST=build and works as before, no regressions
R=mef@chromium.org,thestig@chromium.org
Review URL: https://codereview.chromium.org/264773017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/wifi/wifi_service.h')
-rw-r--r-- | components/wifi/wifi_service.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/components/wifi/wifi_service.h b/components/wifi/wifi_service.h index ce685f0..f57e0d1 100644 --- a/components/wifi/wifi_service.h +++ b/components/wifi/wifi_service.h @@ -41,8 +41,6 @@ class WIFI_EXPORT WiFiService { // Create instance of |WiFiService| for normal use. static WiFiService* Create(); - // Create instance of |WiFiService| for unit test use. - static WiFiService* CreateForTest(); // Get Properties of network identified by |network_guid|. Populates // |properties| on success, |error| on failure. |