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

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

Issue 2063763002: [ios] Removed deprecated ios/web/test/web_test.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually removed web_test.h Created 4 years, 6 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
« no previous file with comments | « ios/web/webui/crw_web_ui_manager_unittest.mm ('k') | ios/web/webui/web_ui_mojo_inttest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/message_loop/message_loop.h"
10 #import "base/mac/scoped_nsobject.h"
9 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
11 #include "base/test/ios/wait_util.h" 13 #include "base/test/ios/wait_util.h"
14 #include "ios/web/public/test/web_test.h"
15 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
12 #include "ios/web/test/mojo_test.mojom.h" 16 #include "ios/web/test/mojo_test.mojom.h"
13 #include "ios/web/test/web_test.h"
14 #include "mojo/public/cpp/bindings/binding_set.h" 17 #include "mojo/public/cpp/bindings/binding_set.h"
15 #include "services/shell/public/cpp/interface_factory.h" 18 #include "services/shell/public/cpp/interface_factory.h"
16 #include "services/shell/public/cpp/interface_registry.h" 19 #include "services/shell/public/cpp/interface_registry.h"
17 #import "testing/gtest_mac.h" 20 #import "testing/gtest_mac.h"
18 #import "third_party/ocmock/OCMock/OCMock.h" 21 #import "third_party/ocmock/OCMock/OCMock.h"
19 22
20 namespace web { 23 namespace web {
21 24
22 namespace { 25 namespace {
23 26
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 NSDictionary* message = GetObject(facade()->HandleMojoMessage(GetJson(read))); 267 NSDictionary* message = GetObject(facade()->HandleMojoMessage(GetJson(read)));
265 EXPECT_TRUE([message isKindOfClass:[NSDictionary class]]); 268 EXPECT_TRUE([message isKindOfClass:[NSDictionary class]]);
266 EXPECT_TRUE(message); 269 EXPECT_TRUE(message);
267 NSArray* expected_message = @[ @9, @2, @216 ]; // 2008 does not fit 8-bit. 270 NSArray* expected_message = @[ @9, @2, @216 ]; // 2008 does not fit 8-bit.
268 EXPECT_NSEQ(expected_message, message[@"buffer"]); 271 EXPECT_NSEQ(expected_message, message[@"buffer"]);
269 EXPECT_FALSE([message[@"handles"] count]); 272 EXPECT_FALSE([message[@"handles"] count]);
270 EXPECT_EQ(MOJO_RESULT_OK, [message[@"result"] unsignedIntValue]); 273 EXPECT_EQ(MOJO_RESULT_OK, [message[@"result"] unsignedIntValue]);
271 } 274 }
272 275
273 } // namespace web 276 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/webui/crw_web_ui_manager_unittest.mm ('k') | ios/web/webui/web_ui_mojo_inttest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698