Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

switched to using the ocmock build file in //build #17707

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

gaaclarke
Copy link
Member

related issue: flutter/flutter#54503
related //build PR: flutter/buildroot#364 (DEPS should be updated to reflect this commit)

@xster
Copy link
Member

xster commented Apr 14, 2020

LGTM

@@ -266,11 +179,10 @@ shared_library("ios_test_flutter") {
]
deps = [
":flutter_framework_source",
":ocmock",
"//build/secondary/third_party/ocmock:ocmock",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build/secondary is redundant and is skipped elsewhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll do this in a sec after build lands so i can test it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

#import <XCTest/XCTest.h>

#include "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.h"
#import "third_party/ocmock/Source/OCMock/OCMock.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could the OCMock target export a public config that adds //third_party/ocmock/Source to the inlcude dirs. That would make these source changes no longer necessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this change on purpose because I think double quote includes relative to the project root are preferred to <> includes. It's a bit easier for maintainers and is less complicated.

Technically they could still use <> includes because i needed to enable them for OCMock to work (they use them in their own headers). That's why there is ocmock_config.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the nit about removing the redundant //build/secondary and of course the buildroot roll.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants