OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
6 #include "gin/arguments.h" | 9 #include "gin/arguments.h" |
7 #include "gin/handle.h" | 10 #include "gin/handle.h" |
8 #include "gin/interceptor.h" | 11 #include "gin/interceptor.h" |
9 #include "gin/object_template_builder.h" | 12 #include "gin/object_template_builder.h" |
10 #include "gin/per_isolate_data.h" | 13 #include "gin/per_isolate_data.h" |
11 #include "gin/public/isolate_holder.h" | 14 #include "gin/public/isolate_holder.h" |
12 #include "gin/test/v8_test.h" | 15 #include "gin/test/v8_test.h" |
13 #include "gin/try_catch.h" | 16 #include "gin/try_catch.h" |
14 #include "gin/wrappable.h" | 17 #include "gin/wrappable.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 189 |
187 TEST_F(InterceptorTest, BypassInterceptorForbidden) { | 190 TEST_F(InterceptorTest, BypassInterceptorForbidden) { |
188 RunInterceptorTest( | 191 RunInterceptorTest( |
189 "(function (obj) {" | 192 "(function (obj) {" |
190 " obj.value = 191 /* make test happy */;" | 193 " obj.value = 191 /* make test happy */;" |
191 " obj[1] = 23;" | 194 " obj[1] = 23;" |
192 " if (obj[1] === 23) throw 'FAIL'; })"); | 195 " if (obj[1] === 23) throw 'FAIL'; })"); |
193 } | 196 } |
194 | 197 |
195 } // namespace gin | 198 } // namespace gin |
OLD | NEW |