Skip to content

Commit

Permalink
Remove unused drive::test_util::FakeNetworkChangeNotifier
Browse files Browse the repository at this point in the history
Bug: 911287
Change-Id: I12c351ea666935a742bd57992d8733d5e09293ba
Reviewed-on: https://chromium-review.googlesource.com/c/1469366
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631575}
  • Loading branch information
robbiemc authored and Commit Bot committed Feb 13, 2019
1 parent 478fe20 commit d8412cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions components/drive/chromeos/drive_test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,5 @@ void RegisterDrivePrefs(PrefRegistrySimple* pref_registry) {
true);
}

FakeNetworkChangeNotifier::FakeNetworkChangeNotifier()
: type_(CONNECTION_WIFI) {
}

void FakeNetworkChangeNotifier::SetConnectionType(ConnectionType type) {
type_ = type;
NotifyObserversOfConnectionTypeChange();
}

net::NetworkChangeNotifier::ConnectionType
FakeNetworkChangeNotifier::GetCurrentConnectionType() const {
return type_;
}

} // namespace test_util
} // namespace drive
14 changes: 0 additions & 14 deletions components/drive/chromeos/drive_test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,6 @@ int ReadAllData(Reader* reader, std::string* content) {
// unregistered preference is referenced.
void RegisterDrivePrefs(PrefRegistrySimple* pref_registry);

// Fake NetworkChangeNotifier implementation.
class FakeNetworkChangeNotifier : public net::NetworkChangeNotifier {
public:
FakeNetworkChangeNotifier();

void SetConnectionType(ConnectionType type);

// NetworkChangeNotifier override.
ConnectionType GetCurrentConnectionType() const override;

private:
net::NetworkChangeNotifier::ConnectionType type_;
};

} // namespace test_util
} // namespace drive

Expand Down

0 comments on commit d8412cb

Please sign in to comment.