OLD | NEW |
(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 |
OLD | NEW |