~ubuntu-branches/ubuntu/vivid/indicator-sound/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ted Gould
  • Date: 2015-01-29 17:32:11 UTC
  • mfrom: (28.220.44)
  • Revision ID: package-import@ubuntu.com-20150129173211-5a3q1dx398s6k0if
Tags: 12.10.2+15.04.20150129.1-0ubuntu1
[ Ted Gould ]
* Move notification code out of volume control object
* Build a rudimentary Pulse Audio mock for testing.
* Disconnect the right function from the 'closed' signal (LP:
  #1307021)
* Ensure that the active port is not null before looking at its value
  (LP: #1399862)

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
include_directories(${CMAKE_CURRENT_BINARY_DIR})
84
84
 
85
85
###########################
 
86
# Pulse Mock
 
87
###########################
 
88
 
 
89
add_library(
 
90
        pulse-mock
 
91
        SHARED
 
92
        pa-mock.cpp
 
93
)
 
94
 
 
95
###########################
86
96
# Name Watch Test
87
97
###########################
88
98
 
116
126
)
117
127
 
118
128
###########################
 
129
# Volume Control
 
130
###########################
 
131
 
 
132
include_directories(${CMAKE_SOURCE_DIR}/src)
 
133
add_executable (volume-control-test volume-control-test.cc)
 
134
target_link_libraries (
 
135
        volume-control-test
 
136
        indicator-sound-service-lib
 
137
        pulse-mock
 
138
        gtest
 
139
        ${TEST_LIBRARIES}
 
140
)
 
141
 
 
142
add_test(volume-control-test volume-control-test)
 
143
 
 
144
###########################
119
145
# Sound Menu
120
146
###########################
121
147