File: test-power-menu.c

package info (click to toggle)
phosh 0.53.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,936 kB
  • sloc: ansic: 83,383; xml: 3,981; python: 717; sh: 449; makefile: 34; lisp: 22; javascript: 6
file content (30 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) 2023 Phosh.mobi e.V.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Author: Guido Günther  <agx@sigxcpu.org>
 */

#include "power-menu.h"

#include "testlib-compositor.h"

static void
test_phosh_power_menu_new (PhoshTestCompositorFixture *fixture, gconstpointer data)
{
  PhoshPowerMenu *menu;

  menu = phosh_power_menu_new (phosh_test_get_monitor (fixture->state));
  gtk_widget_destroy (GTK_WIDGET (menu));
}

int
main (int argc, char *argv[])
{
  g_test_init (&argc, &argv, NULL);

  PHOSH_COMPOSITOR_TEST_ADD ("/phosh/power-menu/new", test_phosh_power_menu_new);

  return g_test_run ();
}