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

Side by Side Diff: third_party/ocmock/BUILD.gn

Issue 1557733002: Prepare for -Wall for third-party code, -Wextra for chromium_code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/mach_override/mach_override.gyp ('k') | third_party/ocmock/ocmock.gyp » ('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) 2015 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2015 The Chromium 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 assert(is_mac || is_ios) 5 assert(is_mac || is_ios)
6 6
7 config("ocmock_config") { 7 config("ocmock_config") {
8 include_dirs = [ "//third_party/ocmock" ] 8 include_dirs = [ "//third_party/ocmock" ]
9 } 9 }
10 10
11 config("ocmock_warnings") {
12 # NSInvocation+OCMAdditions.m has some `- (void) foo; {...`
13 cflags = [ "-Wno-semicolon-before-method-body" ]
14 }
15
11 source_set("ocmock") { 16 source_set("ocmock") {
12 testonly = true 17 testonly = true
13 18
14 sources = [ 19 sources = [
15 # Helper for using with gtest. 20 # Helper for using with gtest.
16 "gtest_support.h", 21 "gtest_support.h",
17 "gtest_support.mm", 22 "gtest_support.mm",
18 23
19 # Some extra features to make using OCMock easier. 24 # Some extra features to make using OCMock easier.
20 "ocmock_extensions.h", 25 "ocmock_extensions.h",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 "OCMock/OCPartialMockRecorder.h", 68 "OCMock/OCPartialMockRecorder.h",
64 "OCMock/OCPartialMockRecorder.m", 69 "OCMock/OCPartialMockRecorder.m",
65 "OCMock/OCProtocolMockObject.h", 70 "OCMock/OCProtocolMockObject.h",
66 "OCMock/OCProtocolMockObject.m", 71 "OCMock/OCProtocolMockObject.m",
67 ] 72 ]
68 73
69 deps = [ 74 deps = [
70 "//testing/gtest", 75 "//testing/gtest",
71 ] 76 ]
72 public_configs = [ ":ocmock_config" ] 77 public_configs = [ ":ocmock_config" ]
78 configs += [ ":ocmock_warnings" ]
73 } 79 }
OLDNEW
« no previous file with comments | « third_party/mach_override/mach_override.gyp ('k') | third_party/ocmock/ocmock.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698