diff options
author | dpranke <dpranke@chromium.org> | 2015-04-30 18:12:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-01 01:13:14 +0000 |
commit | 3c3ab9f274be439c8ab997ba8c787a46acf726cd (patch) | |
tree | bd99a3934725e6428d5af3c264ddefd4f0cd89f7 /third_party | |
parent | bf3420b078689e10abd8bf5922b492b19c4a9a4e (diff) | |
download | chromium_src-3c3ab9f274be439c8ab997ba8c787a46acf726cd.zip chromium_src-3c3ab9f274be439c8ab997ba8c787a46acf726cd.tar.gz chromium_src-3c3ab9f274be439c8ab997ba8c787a46acf726cd.tar.bz2 |
Add ocmock GN build files for content_unittests on mac.
The GYP files were added a couple days ago, but the GN files were
not. We didn't notice because content_unittests isn't build on the
mac yet.
TBR=ccameron@chromium.org,brettw@chromium.org
BUG=431177
CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg
Review URL: https://codereview.chromium.org/1117983004
Cr-Commit-Position: refs/heads/master@{#327856}
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/ocmock/BUILD.gn | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/third_party/ocmock/BUILD.gn b/third_party/ocmock/BUILD.gn new file mode 100644 index 0000000..de51636 --- /dev/null +++ b/third_party/ocmock/BUILD.gn @@ -0,0 +1,73 @@ +# 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" ] +} + +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/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/OCMIndirectReturnValueProvider.h", + "OCMock/OCMIndirectReturnValueProvider.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/OCMReturnValueProvider.h", + "OCMock/OCMReturnValueProvider.m", + "OCMock/OCMock.h", + "OCMock/OCMockObject.h", + "OCMock/OCMockObject.m", + "OCMock/OCMockRecorder.h", + "OCMock/OCMockRecorder.m", + "OCMock/OCObserverMockObject.h", + "OCMock/OCObserverMockObject.m", + "OCMock/OCPartialMockObject.h", + "OCMock/OCPartialMockObject.m", + "OCMock/OCPartialMockRecorder.h", + "OCMock/OCPartialMockRecorder.m", + "OCMock/OCProtocolMockObject.h", + "OCMock/OCProtocolMockObject.m", + ] + + deps = [ + "//testing/gtest", + ] + public_configs = [ ":ocmock_config" ] +} |