History log of /system/connectivity/shill/scope_logger_unittest.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c378b70219504746359d18f8aa9382f5b141e420 08-Jan-2016 Samuel Tan <samueltan@google.com> shill: add binder scope name to ScopeLogger

Add the binder scope name to the ScopeLogger.
This scope name will be used for binder-related
logging.

BUG: 25160005
Change-Id: I002221b5cba16ad9dcc09c3a2680c0aa051d9355
TEST: shill compiles and unit tests pass.
/system/connectivity/shill/scope_logger_unittest.cc
c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5 03-Sep-2015 Peter Qiu <zqiu@google.com> License shill to Apache2

This patch automatically replaced the license on all text files from
Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as
a reference.

The license header was added to .gyp and .gypi, the NOTICE was added with a copy
of the Apache2 license and MODULE_LICENSE_* file was added.

BUG=23587594
TEST=grep 'Chromium OS Authors' doesn't find anything.

Change-Id: If41ede586c2465f5831fb7fee270ff41dbfdb596
/system/connectivity/shill/scope_logger_unittest.cc
3b30ca58d13cf66b75ba0729b222ddc42ae68b33 16-Jun-2015 Paul Stewart <pstew@chromium.org> shill: Top-level unit tests: Switch pointer/ref spacing

Switch to Chrome style spacing.

BUG=chromium:501026
TEST=Unit tests

Change-Id: I86c072b89281e0de18928b47860b99d779af061a
Reviewed-on: https://chromium-review.googlesource.com/278037
Reviewed-by: Rebecca Silberstein <silberst@chromium.org>
Commit-Queue: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
2dc218e49e210b64ecf7d83946ec257ef1529171 30-Jan-2015 Garret Kelly <gdk@chromium.org> shill: add PPPoEService to provide PPPoE support

A PPPoEService handles providing PPPoE connectivity for an Ethernet
device. It is designed to be used in place of an EthernetService.

BUG=chrome-os-partner:32173
TEST=FEATURES=test USE="vpn cellular pppoe" emerge-x86-generic shill
CQ-DEPEND=246511

Change-Id: I53df0e6d4387993f900309bf2bdb72a1f5e287e0
Reviewed-on: https://chromium-review.googlesource.com/244762
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Garret Kelly <gdk@chromium.org>
Tested-by: Garret Kelly <gdk@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
cddd2d09878704128d35ddfeec862109b7d7fdc9 11-Nov-2014 Alex Deymo <deymo@chromium.org> Include the implemented header first in all projects.

The Google C++ style guide dictates that foo.cc and foo_unittest.cc
should include foo.h in the first place, so missing headers in foo.h
are detected with a compile error of the module implementing them and
not when another module uses them.

This CL sweeps across all the .cc file in platform2 enforcing this.

BUG=None
TEST=cbuildbot amd64-generic

Change-Id: I41835835caba13f54c3c844ecf552eb0e47efa9d
Reviewed-on: https://chromium-review.googlesource.com/228894
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
9da07771df3dbbc99ff99114c26317d01f29f7fc 15-May-2013 mukesh agrawal <quiche@chromium.org> shill: support 3G dongles with PPP interface

Assuming the 3G dongle has been switched to modem mode (with
usb_modeswitch or similar), and an activated SIM is present,
shill will automatically connect to the cellular network.

The primary change, as far as the Cellular/Modem logic goes,
is that we take the absence of a link name to mean that the
modem is a PPP dongle. Instead of bailing out, we create the
Cellular object, and register it with the manager as any other
Cellular device.

When the Cellular connection is complete, CellularCapabilityUniversal
checks the Bearer's IPConfig method, as indicated by modemmanager1.
If the method is specified as PPP, the capability asks the Cellular
device to start PPP.

When PPP setup completes, Cellular passes the IP configuration
information to the PPPDevice. At that point, the PPPDevice is
assigned an IP address, and routing is updated appropriately.

Notable changes:
- Moved VPN to VirtualDevice, changed OpenVPNDriver to use it,
created a new subclass PPPDevice.
- Moved PPP code out of L2TPIPSecDriver, and into PPPDevice.
- Changed L2TPIPSecDriver to use PPPDevice.

While there:
- Got rid of VPNDriver::OnDisconnected, and changed callers to
use DropConnection instead.
- Made Load and Save of VirtualDevices no-ops. This eliminates
the confusingly named "device_" stanzas in the default profile.
We lose VPN byte counts by doing this, but they weren't sensible
anyway (they'd be shared across potentially different VPNs).

New units will follow in another CL (TBW).

BUG=chromium:240051
TEST=unit tests, manual

Manual testing
--------------
1. Get 3G PPP dongle.
2. Install activated SIM.
3. Plug dongle into USB port.
4. Wait for the dongle to switch to modem mode.
(I used a manually installed usb_modeswitch, but this will
soon be handled by mist.)
5. Wait for the dongle to connect. With the Huawei E303, this
takes about 35 seconds.

Change-Id: I916bef451ee6e8dcf1af8135ecf6787251acf19b
Reviewed-on: https://gerrit.chromium.org/gerrit/51356
Commit-Queue: mukesh agrawal <quiche@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
5581d07d765e14737d2a639d3eb42e0b42721602 18-Dec-2012 Paul Stewart <pstew@chromium.org> shill: WiFi: Control wpa_supplicant debug level

When shill WiFi debugging is enabled, automatically turn on debugging
in wpa_supplicant. Toggle between the "info" and "debug" levels. If
wpa_supplicant is in any other debug state, assume that its debug
level is being controlled by some other entity and do ont change it.

BUG=chromium-os:36469
TEST=Unit tests + Manual: ff_debug +wifi, then do "wpa_debug" --
this will show wpa changing from "info" to "debug" state. Test the
reverse ("-wifi" => "info").

Change-Id: I63bc190feb179e497bfe50797af7d48a5ee8fba0
Reviewed-on: https://gerrit.chromium.org/gerrit/39836
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
b691efd71561246065eae3cdd73a96ca1b8a528d 09-Aug-2012 Christopher Wiley <wiley@chromium.org> shill: Rename SMLOG to SLOG

Rewrite SMLOG as SLOG, thus saving many edits. Change the location of
the SLOG macro to be memory_log.h, requiring includes to be rewritten
and reordered. While we're rewriting includes, moving all assorted
logging includes into a generic shill/logging.h, thus saving future
logging changes from altering these includes ever again.

BUG=chromium-os:31145
TEST=Builds, unit tests still pass

Change-Id: Ie5129fcbdda87f3149460209a682c698b876b09a
Reviewed-on: https://gerrit.chromium.org/gerrit/29650
Commit-Ready: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
6c72c972614285b2c01fb38afb2ffe06484a544a 27-Jul-2012 Paul Stewart <pstew@chromium.org> shill: LinkMonitor: Schedule periodic ARP requests

The LinkMonitor performs periodic unicast and broadcast ARP requests
for a connection's gateway IP address. It creates a weighted
average of response time, and can call a failure callback function
whenever the sum of consecutive unicast and broadcast response
failures exceed a threshold.

BUG=chromium-os:32600
TEST=Unit tests

Change-Id: Id5a66ad9ca80c51f227ef4811eb8c3885a70c1b8
Reviewed-on: https://gerrit.chromium.org/gerrit/28610
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
d34a47c06c38f2594c85b14b0f9cee2bf37c0e84 02-Aug-2012 Christopher Wiley <wiley@chromium.org> shill: Fix ScopeLogger to respect verbosities

The confusion over the signs of verbosities and severities has
apparently led us to ignore verbosity when we go through the SLOG_IS_ON
macro. Unfortunately, for actual logging, we always go through the
SLOG_IS_ON macro.

BUG=chromium-os:33177
TEST=Unittest, confirmed with ff_debug on a ToT build

Change-Id: I0081144b19f1a350d96aa32e26bd8311d1882d7f
Reviewed-on: https://gerrit.chromium.org/gerrit/28988
Commit-Ready: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
e638be39890592fdb1aa19bbb68517e292aa380e 01-Jun-2012 mukesh agrawal <quiche@chromium.org> shill: modify scope_logger_unittest to use an embedded instance,
rather than the global lazy_instance.

If we use a lazy_instance in this test, then the state of the
object used in this test depend ons the order in which tests
run (because other tests can access and modify the lazy_instance).

Eliminate the execution order dependency by using a private instance
of the class.

BUG=None
TEST=unit tests

Change-Id: I3b76f20dfc4f900a7452084a001d4750b8fe2f03
Reviewed-on: https://gerrit.chromium.org/gerrit/24247
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: mukesh agrawal <quiche@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
096b3473d1764d0fc0f56a11435ed28badb4963d 15-May-2012 Darin Petkov <petkov@chromium.org> shill: wimax: Implement WiMAX Manager and Device proxies.

Also, add a WiMax logging scope.

BUG=chrome-os-partner:9697
TEST=build and run unit tests

Change-Id: I8516ff2b55e54feb5fcdab089d0fe279551b4317
Reviewed-on: https://gerrit.chromium.org/gerrit/22695
Commit-Ready: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
fad4a0b7e55dd82d3815ee96862b6e546727eb6e 19-Apr-2012 Ben Chan <benchan@chromium.org> shill: Replace VLOG with SLOG.

This CL replaces all uses of VLOG(level) with SLOG(scope, level) with
the same verbose level and an appropriate scope for each affected
logging statement.

BUG=chromium-os:29641
TEST=Build and run unit tests. Test scope logging with ff_debug.

Change-Id: Ifdcf1faa2a309bcbd9ee369a66179ce9c7f1ad19
Reviewed-on: https://gerrit.chromium.org/gerrit/20629
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
1c72260b46c398824f083adeeac90cdfaf03a415 18-Apr-2012 Ben Chan <benchan@chromium.org> shill: Fix output of ListDebugTags to match what ff_debug expects.

ff_debug expects ListDebugTags to output a list of valid debug tags
separated by plus signs instead of commas.

BUG=chromium-os:26081
TEST=Build and run unit tests. Use ff_debug to get/set debug tags.

Change-Id: Id4772e750083b21094c83819cb8894cc83eddf68
Reviewed-on: https://gerrit.chromium.org/gerrit/20433
Tested-by: Ben Chan <benchan@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc
bc49ac7047b24da5672d08dfbf78cd680466b55a 11-Apr-2012 Ben Chan <benchan@chromium.org> shill: Implement debug tag related DBus methods.

This CL adds a ScopeLogger class to enable logging based on user-defined
scope (instead of file or module) and corresponding helper macros such as
SLOG() as a replacement for VLOG(). The debug tag related DBus methods
are implemented using the scope logging.

BUG=chromium-os:26081
TEST=Build and run unit tests.

Change-Id: I8d179f010c7a6bf095953bbc6e2a92561db676dc
Reviewed-on: https://gerrit.chromium.org/gerrit/19976
Commit-Ready: Ben Chan <benchan@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
/system/connectivity/shill/scope_logger_unittest.cc