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

Side by Side Diff: gin/interceptor_unittest.cc

Issue 1541743002: Switch to standard integer types in gin/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « gin/interceptor.cc ('k') | gin/isolate_holder.cc » ('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 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
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
OLDNEW
« no previous file with comments | « gin/interceptor.cc ('k') | gin/isolate_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698