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

Side by Side Diff: ios/web/web_state/js/core_js_unittest.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include <vector> 5 #include <vector>
6 #import <Foundation/Foundation.h> 6 #import <Foundation/Foundation.h>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #import "ios/web/public/test/web_test_with_web_state.h" 10 #import "ios/web/public/test/web_test_with_web_state.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "testing/gtest_mac.h" 12 #import "testing/gtest_mac.h"
13 13
14 // Unit tests for ios/web/web_state/js/resources/core.js. 14 // Unit tests for ios/web/web_state/js/resources/core.js.
15 15
16 namespace { 16 namespace {
17 17
18 struct TestScriptAndExpectedValue { 18 struct TestScriptAndExpectedValue {
19 NSString* test_script; 19 NSString* test_script;
20 id expected_value; 20 id expected_value;
21 }; 21 };
22 22
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 expected_result = @{ 270 expected_result = @{
271 @"src" : [NSString stringWithFormat:@"%sfoo", BaseUrl().c_str()], 271 @"src" : [NSString stringWithFormat:@"%sfoo", BaseUrl().c_str()],
272 @"referrerPolicy" : @"default", 272 @"referrerPolicy" : @"default",
273 }; 273 };
274 // Make sure the returned JSON does not have an 'href' key. 274 // Make sure the returned JSON does not have an 'href' key.
275 EXPECT_NSEQ(expected_result, result); 275 EXPECT_NSEQ(expected_result, result);
276 } 276 }
277 } 277 }
278 278
279 } // namespace web 279 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/js/common_js_unittest.mm ('k') | ios/web/web_state/js/credential_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698