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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_mac || is_ios)
config("ocmock_config") {
include_dirs = [ "//third_party/ocmock" ]
}
config("ocmock_warnings") {
# NSInvocation+OCMAdditions.m has some `- (void) foo; {...`
cflags = [
"-Wno-semicolon-before-method-body",
"-Wno-undeclared-selector",
]
}
source_set("ocmock") {
testonly = true
sources = [
# Helper for using with gtest.
"gtest_support.h",
"gtest_support.mm",
# Some extra features to make using OCMock easier.
"ocmock_extensions.h",
"ocmock_extensions.mm",
# OCMock sources.
"OCMock/NSInvocation+OCMAdditions.h",
"OCMock/NSInvocation+OCMAdditions.m",
"OCMock/NSMethodSignature+OCMAdditions.h",
"OCMock/NSMethodSignature+OCMAdditions.m",
"OCMock/NSNotificationCenter+OCMAdditions.h",
"OCMock/NSNotificationCenter+OCMAdditions.m",
"OCMock/NSObject+OCMAdditions.h",
"OCMock/NSObject+OCMAdditions.m",
"OCMock/NSValue+OCMAdditions.h",
"OCMock/NSValue+OCMAdditions.m",
"OCMock/OCClassMockObject.h",
"OCMock/OCClassMockObject.m",
"OCMock/OCMArg.h",
"OCMock/OCMArg.m",
"OCMock/OCMBlockCaller.h",
"OCMock/OCMBlockCaller.m",
"OCMock/OCMBoxedReturnValueProvider.h",
"OCMock/OCMBoxedReturnValueProvider.m",
"OCMock/OCMConstraint.h",
"OCMock/OCMConstraint.m",
"OCMock/OCMExceptionReturnValueProvider.h",
"OCMock/OCMExceptionReturnValueProvider.m",
"OCMock/OCMExpectationRecorder.h",
"OCMock/OCMExpectationRecorder.m",
"OCMock/OCMFunctions.h",
"OCMock/OCMFunctions.m",
"OCMock/OCMIndirectReturnValueProvider.h",
"OCMock/OCMIndirectReturnValueProvider.m",
"OCMock/OCMInvocationExpectation.h",
"OCMock/OCMInvocationExpectation.m",
"OCMock/OCMInvocationMatcher.h",
"OCMock/OCMInvocationMatcher.m",
"OCMock/OCMInvocationStub.h",
"OCMock/OCMInvocationStub.m",
"OCMock/OCMLocation.h",
"OCMock/OCMLocation.m",
"OCMock/OCMMacroState.h",
"OCMock/OCMMacroState.m",
"OCMock/OCMNotificationPoster.h",
"OCMock/OCMNotificationPoster.m",
"OCMock/OCMObserverRecorder.h",
"OCMock/OCMObserverRecorder.m",
"OCMock/OCMPassByRefSetter.h",
"OCMock/OCMPassByRefSetter.m",
"OCMock/OCMRealObjectForwarder.h",
"OCMock/OCMRealObjectForwarder.m",
"OCMock/OCMRecorder.h",
"OCMock/OCMRecorder.m",
"OCMock/OCMReturnValueProvider.h",
"OCMock/OCMReturnValueProvider.m",
"OCMock/OCMStubRecorder.h",
"OCMock/OCMStubRecorder.m",
"OCMock/OCMVerifier.h",
"OCMock/OCMVerifier.m",
"OCMock/OCMock.h",
"OCMock/OCMockObject.h",
"OCMock/OCMockObject.m",
"OCMock/OCObserverMockObject.h",
"OCMock/OCObserverMockObject.m",
"OCMock/OCPartialMockObject.h",
"OCMock/OCPartialMockObject.m",
"OCMock/OCProtocolMockObject.h",
"OCMock/OCProtocolMockObject.m",
]
deps = [
"//testing/gtest",
]
public_configs = [ ":ocmock_config" ]
configs -= [
"//build/config/compiler:chromium_code",
]
configs += [
":ocmock_warnings",
"//build/config/compiler:no_chromium_code",
]
}
|