| OLD | NEW |
| 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_WEB_PUBLIC_TEST_WEB_JS_TEST_H_ |
| 6 #define IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_ | 6 #define IOS_WEB_PUBLIC_TEST_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 namespace web { | 14 namespace web { |
| 15 | 15 |
| 16 // Base fixture mixin for testing JavaScripts. | 16 // Base fixture mixin for testing JavaScripts. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 containsObject:get_element_java_script]; | 105 containsObject:get_element_java_script]; |
| 106 EXPECT_NSEQ(@(expected), ExecuteJavaScriptWithFormat( | 106 EXPECT_NSEQ(@(expected), ExecuteJavaScriptWithFormat( |
| 107 java_script, get_element_java_script)) | 107 java_script, get_element_java_script)) |
| 108 << [NSString stringWithFormat:@"%@ on %@ should return %d", java_script, | 108 << [NSString stringWithFormat:@"%@ on %@ should return %d", java_script, |
| 109 get_element_java_script, expected]; | 109 get_element_java_script, expected]; |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace web | 113 } // namespace web |
| 114 | 114 |
| 115 #endif // IOS_INTERNAL_CHROME_BROWSER_WEB_WEB_JS_TEST_H_ | 115 #endif // IOS_WEB_PUBLIC_TEST_WEB_JS_TEST_H_ |
| OLD | NEW |