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

Side by Side Diff: fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp

Issue 1434543003: Merge to XFA: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix XFA Created 5 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
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 PDFium 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 "../../../third_party/base/nonstd_unique_ptr.h"
6 #include "../../../core/include/fpdfapi/fpdf_parser.h" 5 #include "../../../core/include/fpdfapi/fpdf_parser.h"
7 #include "../../../testing/embedder_test.h" 6 #include "../../../testing/embedder_test.h"
8 #include "../../include/jsapi/fxjs_v8.h" 7 #include "../../include/jsapi/fxjs_v8.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/base/nonstd_unique_ptr.h"
10 10
11 namespace { 11 namespace {
12 12
13 const wchar_t kScript[] = L"fred = 7"; 13 const wchar_t kScript[] = L"fred = 7";
14 14
15 } // namespace 15 } // namespace
16 16
17 class FXJSV8Embeddertest : public EmbedderTest { 17 class FXJSV8Embeddertest : public EmbedderTest {
18 public: 18 public:
19 FXJSV8Embeddertest() 19 FXJSV8Embeddertest()
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 FXJSErr error; 63 FXJSErr error;
64 CFX_WideString wsInfo; 64 CFX_WideString wsInfo;
65 CFX_WideString wsScript(kScript); 65 CFX_WideString wsScript(kScript);
66 int sts = FXJS_Execute(isolate(), nullptr, kScript, &error); 66 int sts = FXJS_Execute(isolate(), nullptr, kScript, &error);
67 EXPECT_EQ(0, sts); 67 EXPECT_EQ(0, sts);
68 68
69 v8::Local<v8::Object> This = FXJS_GetThisObj(isolate()); 69 v8::Local<v8::Object> This = FXJS_GetThisObj(isolate());
70 v8::Local<v8::Value> fred = FXJS_GetObjectElement(isolate(), This, L"fred"); 70 v8::Local<v8::Value> fred = FXJS_GetObjectElement(isolate(), This, L"fred");
71 EXPECT_TRUE(fred->IsNumber()); 71 EXPECT_TRUE(fred->IsNumber());
72 } 72 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/app.cpp ('k') | pdfium.gyp » ('j') | xfa.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698