OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from autotest_lib.client.bin import site_backchannel, test, utils | 5 from autotest_lib.client.bin import test, utils |
6 from autotest_lib.client.common_lib import error | 6 from autotest_lib.client.common_lib import error |
7 | 7 |
8 import dbus, dbus.mainloop.glib, gobject | 8 import dbus, dbus.mainloop.glib, gobject |
9 import glib | 9 import glib |
10 | 10 |
11 from autotest_lib.client.cros import flimflam_test_path | 11 from autotest_lib.client.cros import flimflam_test_path |
12 import flimflam | 12 import flimflam |
13 | 13 |
14 class network_3GDormancyDance(test.test): | 14 class network_3GDormancyDance(test.test): |
15 version = 1 | 15 version = 1 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 self.device = self.flim.FindElementByPropertySubstring('Device', | 81 self.device = self.flim.FindElementByPropertySubstring('Device', |
82 'Interface', | 82 'Interface', |
83 name) | 83 name) |
84 self.bus.add_signal_receiver(self.PropertyChanged, | 84 self.bus.add_signal_receiver(self.PropertyChanged, |
85 signal_name='PropertyChanged') | 85 signal_name='PropertyChanged') |
86 self.bus.add_signal_receiver(self.DormancyStatus, | 86 self.bus.add_signal_receiver(self.DormancyStatus, |
87 signal_name='DormancyStatus') | 87 signal_name='DormancyStatus') |
88 self.mainloop = gobject.MainLoop() | 88 self.mainloop = gobject.MainLoop() |
89 glib.idle_add(self.begin) | 89 glib.idle_add(self.begin) |
90 self.mainloop.run() | 90 self.mainloop.run() |
OLD | NEW |