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

Side by Side Diff: ios/web/public/test/web_js_test.h

Issue 2544293002: ios: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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/public/interstitials/web_interstitial.h ('k') | ios/web/public/url_data_source_ios.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_ 5 #ifndef IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_
6 #define IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_ 6 #define IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "base/mac/bundle_locations.h" 10 #import "base/mac/bundle_locations.h"
11 #import "base/mac/scoped_nsobject.h" 11 #import "base/mac/scoped_nsobject.h"
12 #include "testing/gtest_mac.h" 12 #include "testing/gtest_mac.h"
13 13
14 class GURL;
15
16 namespace web { 14 namespace web {
17 15
18 // Base fixture mixin for testing JavaScripts. 16 // Base fixture mixin for testing JavaScripts.
19 template <class WebTestT> 17 template <class WebTestT>
20 class WebJsTest : public WebTestT { 18 class WebJsTest : public WebTestT {
21 public: 19 public:
22 WebJsTest(NSArray* java_script_paths) 20 WebJsTest(NSArray* java_script_paths)
23 : java_script_paths_([java_script_paths copy]) {} 21 : java_script_paths_([java_script_paths copy]) {}
24 22
25 protected: 23 protected:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 EXPECT_NSEQ(@(expected), ExecuteJavaScriptWithFormat( 106 EXPECT_NSEQ(@(expected), ExecuteJavaScriptWithFormat(
109 java_script, get_element_java_script)) 107 java_script, get_element_java_script))
110 << [NSString stringWithFormat:@"%@ on %@ should return %d", java_script, 108 << [NSString stringWithFormat:@"%@ on %@ should return %d", java_script,
111 get_element_java_script, expected]; 109 get_element_java_script, expected];
112 } 110 }
113 } 111 }
114 112
115 } // namespace web 113 } // namespace web
116 114
117 #endif // IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_ 115 #endif // IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_
OLDNEW
« no previous file with comments | « ios/web/public/interstitials/web_interstitial.h ('k') | ios/web/public/url_data_source_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698