shill: Add extended mobile-broadband-provider-info parser to shill.
This CL extends the CellularOperatorInfo class to contain more
mobile-broadband-provider-info data in the following ways:
- data/cellular_operator_info is modified to contain more info than
just OLP. The format has been changed to an extended version of
/usr/share/mobile-broadband-provider-info/serviceproviders.bfd. For
now, it only contains information on one carrier.
- The CellularOperatorInfo class provides the functionality to parse
the contents of the file format described in
data/cellular_operator_info. It provides the functionalities of the
parser in third_party/mobile-broadband-provider-info/src/
(implemented in C) in C++, by exposing similar content in the form
of CellularOperatorInfo::CellularOperator.
- Similar to third_party/mobile-broadband-provider-info/src/,
CellularOperatorInfo can be used to look up a cellular carrier by
name, MCCMNC, but also SID. The output, in addition, contains data
regarding OLP.
BUG=chromium-os:37670
TEST=Build and run unittests.
Change-Id: I4975c79c828d6386517c5c91c1ce9567cd063a15
Reviewed-on: https://gerrit.chromium.org/gerrit/41101
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Arman Uguray <armansito@chromium.org>
Tested-by: Arman Uguray <armansito@chromium.org>
diff --git a/file_reader.cc b/file_reader.cc
index 81e52a4..450d7e0 100644
--- a/file_reader.cc
+++ b/file_reader.cc
@@ -26,7 +26,7 @@
bool FileReader::ReadLine(string *line) {
CHECK(line) << "Invalid argument";
- FILE* fp = file_.get();
+ FILE *fp = file_.get();
if (fp == NULL)
return false;