~ci-train-bot/indicator-power/indicator-power-ubuntu-zesty-2132

« back to all changes in this revision

Viewing changes to tests/test-device.cc

  • Committer: CI Train Bot
  • Author(s): Charles Kerr
  • Date: 2016-05-16 21:33:30 UTC
  • mfrom: (292.2.9 use-libnotify-for-audio)
  • Revision ID: ci-train-bot@canonical.com-20160516213330-tsw2b5yf7mt2hvpo
Use the fdo 'sound-file' hint to play a sound when a low battery notification is shown.
Approved by: Ted Gould

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    virtual void SetUp()
49
49
    {
50
50
      const GLogLevelFlags flags = GLogLevelFlags(G_LOG_LEVEL_CRITICAL|G_LOG_LEVEL_WARNING);
51
 
      log_handler_id = g_log_set_handler ("Indicator-Power", flags, log_count_func, this);
 
51
      log_handler_id = g_log_set_handler(G_LOG_DOMAIN, flags, log_count_func, this);
52
52
      log_count_ipower_expected = 0;
53
53
      log_count_ipower_actual = 0;
54
54
    }
56
56
    virtual void TearDown()
57
57
    {
58
58
      ASSERT_EQ (log_count_ipower_expected, log_count_ipower_actual);
59
 
      g_log_remove_handler ("Indicator-Power", log_handler_id);
 
59
      g_log_remove_handler (G_LOG_DOMAIN, log_handler_id);
60
60
    }
61
61
 
62
62
  protected: