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

Side by Side Diff: gin/test/gtest.cc

Issue 69293015: Add a gin/public directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « gin/public/wrapper_info.h ('k') | gin/wrapper_info.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 #include "gin/test/gtest.h" 5 #include "gin/test/gtest.h"
6 6
7 #include "gin/arguments.h" 7 #include "gin/arguments.h"
8 #include "gin/converter.h" 8 #include "gin/converter.h"
9 #include "gin/per_isolate_data.h" 9 #include "gin/per_isolate_data.h"
10 #include "gin/wrapper_info.h" 10 #include "gin/public/wrapper_info.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using v8::ObjectTemplate; 13 using v8::ObjectTemplate;
14 14
15 namespace gin { 15 namespace gin {
16 16
17 namespace { 17 namespace {
18 18
19 void ExpectTrue(const v8::FunctionCallbackInfo<v8::Value>& info) { 19 void ExpectTrue(const v8::FunctionCallbackInfo<v8::Value>& info) {
20 Arguments args(info); 20 Arguments args(info);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 templ->Set(StringToSymbol(isolate, "expectFalse"), 70 templ->Set(StringToSymbol(isolate, "expectFalse"),
71 v8::FunctionTemplate::New(ExpectFalse)); 71 v8::FunctionTemplate::New(ExpectFalse));
72 templ->Set(StringToSymbol(isolate, "expectEqual"), 72 templ->Set(StringToSymbol(isolate, "expectEqual"),
73 v8::FunctionTemplate::New(ExpectEqual)); 73 v8::FunctionTemplate::New(ExpectEqual));
74 data->SetObjectTemplate(&g_wrapper_info, templ); 74 data->SetObjectTemplate(&g_wrapper_info, templ);
75 } 75 }
76 return templ; 76 return templ;
77 } 77 }
78 78
79 } // namespace gin 79 } // namespace gin
OLDNEW
« no previous file with comments | « gin/public/wrapper_info.h ('k') | gin/wrapper_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698