Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2345)

Side by Side Diff: src/Makefile.am

Issue 6395007: cashew: gmock integration (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « configure.ac ('k') | src/cashew_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010, 2011 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 #================================================================ 5 #================================================================
6 # libcashew 6 # libcashew
7 # 7 #
8 # libcashew contains the bulk of the cashew source code 8 # libcashew contains the bulk of the cashew source code
9 # we link it with main.cc to produce cashewd, and we link it with 9 # we link it with main.cc to produce cashewd, and we link it with
10 # our *_unittest.cc sources to produce our unit test executable 10 # our *_unittest.cc sources to produce our unit test executable
11 #================================================================ 11 #================================================================
12 12
13 noinst_LTLIBRARIES = libcashew.la 13 noinst_LTLIBRARIES = libcashew.la
14 14
15 libcashew_la_SOURCES = \ 15 libcashew_la_SOURCES = \
16 byte_counter.h \ 16 byte_counter.h \
17 byte_counter.cc \ 17 byte_counter.cc \
18 cashew_server.h \ 18 cashew_server.h \
19 cashew_server.cc \ 19 cashew_server.cc \
20 data_plan.h \ 20 data_plan.h \
21 data_plan.cc \ 21 data_plan.cc \
22 data_plan_provider.h \ 22 data_plan_provider.h \
23 data_plan_provider.cc \ 23 data_plan_provider.cc \
24 default_policy.h \ 24 default_policy.h \
25 default_policy.cc \ 25 default_policy.cc \
26 device.h \ 26 device.h \
27 device.cc \ 27 device.cc \
28 device_impl.h \
29 device_impl.cc \
28 http_fetcher.h \ 30 http_fetcher.h \
29 json_reader.h \ 31 json_reader.h \
30 json_reader.cc \ 32 json_reader.cc \
31 libcurl_http_fetcher.h \ 33 libcurl_http_fetcher.h \
32 libcurl_http_fetcher.cc \ 34 libcurl_http_fetcher.cc \
33 policy.h \ 35 policy.h \
34 policy.cc \ 36 policy.cc \
35 procfs_byte_counter.h \ 37 procfs_byte_counter.h \
36 procfs_byte_counter.cc \ 38 procfs_byte_counter.cc \
37 property_changed_handler.h \ 39 property_changed_handler.h \
38 property_changed_handler.cc \ 40 property_changed_handler.cc \
39 service.h \ 41 service.h \
40 service.cc \ 42 service.cc \
43 service_impl.h \
44 service_impl.cc \
41 service_manager.h \ 45 service_manager.h \
42 service_manager.cc \ 46 service_manager.cc \
47 service_manager_impl.h \
48 service_manager_impl.cc \
43 values.h \ 49 values.h \
44 values.cc 50 values.cc
45 51
46 # D-Bus server stub generation 52 # D-Bus server stub generation
47 DBUSXX_XML2CPP = dbusxx-xml2cpp 53 DBUSXX_XML2CPP = dbusxx-xml2cpp
48 cashew_server_glue.h: $(top_srcdir)/introspection/cashew.xml 54 cashew_server_glue.h: $(top_srcdir)/introspection/cashew.xml
49 $(DBUSXX_XML2CPP) $^ --adaptor=$@ 55 $(DBUSXX_XML2CPP) $^ --adaptor=$@
50 56
51 # D-Bus client stub generation 57 # D-Bus client stub generation
52 flimflam_device_client_glue.h: $(top_srcdir)/extrospection/flimflam-device.xml 58 flimflam_device_client_glue.h: $(top_srcdir)/extrospection/flimflam-device.xml
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #=========== 126 #===========
121 # unit tests 127 # unit tests
122 #=========== 128 #===========
123 129
124 check_PROGRAMS = cashew_unittest 130 check_PROGRAMS = cashew_unittest
125 131
126 cashew_unittest_SOURCES = \ 132 cashew_unittest_SOURCES = \
127 cashew_unittest.cc \ 133 cashew_unittest.cc \
128 data_plan_unittest.cc \ 134 data_plan_unittest.cc \
129 default_policy_unittest.cc \ 135 default_policy_unittest.cc \
136 device_mock.h \
130 json_reader_unittest.cc \ 137 json_reader_unittest.cc \
131 procfs_byte_counter_unittest.cc \ 138 procfs_byte_counter_unittest.cc \
139 service_manager_mock.h \
140 service_mock.h \
132 values_unittest.cc 141 values_unittest.cc
133 142
143 GMOCK_CFLAGS =
144 GMOCK_LIBS = -lgmock
145
134 GTEST_CFLAGS = 146 GTEST_CFLAGS =
135 GTEST_LIBS = -lgtest 147 GTEST_LIBS = -lgtest
136 148
137 cashew_unittest_CXXFLAGS = \ 149 cashew_unittest_CXXFLAGS = \
138 $(COMMON_CFLAGS) \ 150 $(COMMON_CFLAGS) \
151 $(GMOCK_CFLAGS) \
139 $(GTEST_CFLAGS) 152 $(GTEST_CFLAGS)
140 153
141 cashew_unittest_LDADD = \ 154 cashew_unittest_LDADD = \
142 $(LIBCASHEW) \ 155 $(LIBCASHEW) \
143 $(COMMON_LIBS) \ 156 $(COMMON_LIBS) \
157 $(GMOCK_LIBS) \
144 $(GTEST_LIBS) 158 $(GTEST_LIBS)
OLDNEW
« no previous file with comments | « configure.ac ('k') | src/cashew_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698