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

Side by Side Diff: ios/web/webui/crw_web_ui_page_builder_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/web/webui/crw_web_ui_page_builder.h" 5 #import "ios/web/webui/crw_web_ui_page_builder.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "testing/gtest_mac.h" 13 #import "testing/gtest_mac.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace { 17 namespace {
18 18
19 // HTML page template. 19 // HTML page template.
20 NSString* const kPageTemplate = @"<html><head>%@</head></html>"; 20 NSString* const kPageTemplate = @"<html><head>%@</head></html>";
21 21
22 // URL for BuildSimplePage. 22 // URL for BuildSimplePage.
23 const char* kSimplePageUrl("http://simplepage"); 23 const char* kSimplePageUrl("http://simplepage");
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 TEST_F(CRWWebUIPageBuilderTest, BuildPageWithWebUIJS) { 267 TEST_F(CRWWebUIPageBuilderTest, BuildPageWithWebUIJS) {
268 NSString* core_js_html = 268 NSString* core_js_html =
269 PageForTagTemplateAndContent(kJsInlinedTemplate, kCoreJsContent); 269 PageForTagTemplateAndContent(kJsInlinedTemplate, kCoreJsContent);
270 [web_ui_page_builder_ buildWebUIPageForURL:GURL(kCoreJsPageUrl) 270 [web_ui_page_builder_ buildWebUIPageForURL:GURL(kCoreJsPageUrl)
271 completionHandler:^(NSString* result) { 271 completionHandler:^(NSString* result) {
272 EXPECT_NSEQ(core_js_html, result); 272 EXPECT_NSEQ(core_js_html, result);
273 }]; 273 }];
274 } 274 }
275 275
276 } // namespace web 276 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698