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

Side by Side Diff: ios/clean/chrome/browser/ui/tools/tools_mediator_unittest.mm

Issue 2812463002: [ios clean] Creates ToolsMenu UnitTests (Closed)
Patch Set: CL Feedback Created 3 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h"
6
7 #import "ios/clean/chrome/browser/ui/tools/tools_consumer.h"
8 #include "testing/platform_test.h"
9 #import "third_party/ocmock/OCMock/OCMock.h"
10 #include "third_party/ocmock/gtest_support.h"
11
12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support."
14 #endif
15
16 namespace {
17
18 class ToolsMediatorTest : public PlatformTest {
19 protected:
20 ToolsMediator* mediator_;
21 };
22
23 TEST_F(ToolsMediatorTest, TestSetConsumer) {
24 id consumer = OCMProtocolMock(@protocol(ToolsConsumer));
25 mediator_ = [[ToolsMediator alloc] initWithConsumer:consumer];
26
27 [[consumer verify] setToolsMenuItems:[OCMArg any]];
28 }
29
30 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698