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

Side by Side Diff: ios/web/webui/mojo_facade_unittest.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #import "ios/web/webui/mojo_facade.h" 5 #import "ios/web/webui/mojo_facade.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "base/test/ios/wait_util.h" 12 #import "base/test/ios/wait_util.h"
13 #include "ios/web/public/test/web_test.h" 13 #include "ios/web/public/test/web_test.h"
14 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" 14 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
15 #include "ios/web/test/mojo_test.mojom.h" 15 #include "ios/web/test/mojo_test.mojom.h"
16 #include "mojo/public/cpp/bindings/binding_set.h" 16 #include "mojo/public/cpp/bindings/binding_set.h"
17 #include "services/service_manager/public/cpp/identity.h" 17 #include "services/service_manager/public/cpp/identity.h"
18 #include "services/service_manager/public/cpp/interface_factory.h" 18 #include "services/service_manager/public/cpp/interface_factory.h"
19 #include "services/service_manager/public/cpp/interface_registry.h" 19 #include "services/service_manager/public/cpp/interface_registry.h"
20 #import "testing/gtest_mac.h" 20 #import "testing/gtest_mac.h"
21 #import "third_party/ocmock/OCMock/OCMock.h" 21 #import "third_party/ocmock/OCMock/OCMock.h"
22 22
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 NSDictionary* message = GetObject(facade()->HandleMojoMessage(GetJson(read))); 271 NSDictionary* message = GetObject(facade()->HandleMojoMessage(GetJson(read)));
272 EXPECT_TRUE([message isKindOfClass:[NSDictionary class]]); 272 EXPECT_TRUE([message isKindOfClass:[NSDictionary class]]);
273 EXPECT_TRUE(message); 273 EXPECT_TRUE(message);
274 NSArray* expected_message = @[ @9, @2, @216 ]; // 2008 does not fit 8-bit. 274 NSArray* expected_message = @[ @9, @2, @216 ]; // 2008 does not fit 8-bit.
275 EXPECT_NSEQ(expected_message, message[@"buffer"]); 275 EXPECT_NSEQ(expected_message, message[@"buffer"]);
276 EXPECT_FALSE([message[@"handles"] count]); 276 EXPECT_FALSE([message[@"handles"] count]);
277 EXPECT_EQ(MOJO_RESULT_OK, [message[@"result"] unsignedIntValue]); 277 EXPECT_EQ(MOJO_RESULT_OK, [message[@"result"] unsignedIntValue]);
278 } 278 }
279 279
280 } // namespace web 280 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698