blob: f818091cb7375866ff9c1e72848baa61f36d9edf [file] [log] [blame]
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001// Copyright 2015 PDFium Authors. All rights reserved.
Tom Sepez96d13342015-01-16 14:59:26 -08002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Wei Li091f7a02015-11-09 12:09:55 -08005#include "testing/embedder_test.h"
Tom Sepez96d13342015-01-16 14:59:26 -08006
7#include <limits.h>
Tom Sepez96d13342015-01-16 14:59:26 -08008
9#include <list>
10#include <string>
11#include <utility>
12#include <vector>
13
thestigbcd3e532016-11-21 13:37:28 -080014#include "core/fdrm/crypto/fx_crypt.h"
Lei Zhangb4e7f302015-11-06 15:52:32 -080015#include "public/fpdf_dataavail.h"
Lei Zhang453d96b2015-12-31 13:13:10 -080016#include "public/fpdf_edit.h"
Lei Zhangb4e7f302015-11-06 15:52:32 -080017#include "public/fpdf_text.h"
18#include "public/fpdfview.h"
Tom Sepeza310e002015-02-27 13:03:07 -080019#include "testing/gmock/include/gmock/gmock.h"
Wei Li091f7a02015-11-09 12:09:55 -080020#include "testing/test_support.h"
21#include "testing/utils/path_service.h"
Tom Sepez452b4f32015-10-13 09:27:27 -070022
23#ifdef PDF_ENABLE_V8
Lei Zhang8241df72015-11-06 14:38:48 -080024#include "v8/include/v8-platform.h"
Dan Sinclair61046b92016-02-18 14:48:48 -050025#include "v8/include/v8.h"
Tom Sepez452b4f32015-10-13 09:27:27 -070026#endif // PDF_ENABLE_V8
Tom Sepez96d13342015-01-16 14:59:26 -080027
Tom Sepez96d13342015-01-16 14:59:26 -080028namespace {
thestigc08cd7a2016-06-27 09:47:59 -070029
30const char* g_exe_path = nullptr;
31
32#ifdef PDF_ENABLE_V8
33#ifdef V8_USE_EXTERNAL_STARTUP_DATA
34v8::StartupData* g_v8_natives = nullptr;
35v8::StartupData* g_v8_snapshot = nullptr;
36#endif // V8_USE_EXTERNAL_STARTUP_DATA
37#endif // PDF_ENABLE_V8
38
Tom Sepezcf22eb82015-05-12 17:28:08 -070039FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
Tom Sepez96d13342015-01-16 14:59:26 -080040 return true;
41}
42
Nico Weber9d8ec5a2015-08-04 13:00:21 -070043void Add_Segment(FX_DOWNLOADHINTS* pThis, size_t offset, size_t size) {}
Tom Sepez96d13342015-01-16 14:59:26 -080044
thestigbcd3e532016-11-21 13:37:28 -080045} // namespace
46
Nico Weber9d8ec5a2015-08-04 13:00:21 -070047EmbedderTest::EmbedderTest()
Tom Sepeza72e8e22015-10-07 10:17:53 -070048 : default_delegate_(new EmbedderTest::Delegate()),
49 document_(nullptr),
Tom Sepez4cb0fa72015-02-25 16:08:18 -080050 form_handle_(nullptr),
51 avail_(nullptr),
Tom Sepeza72e8e22015-10-07 10:17:53 -070052 external_isolate_(nullptr),
Tom Sepez4cb0fa72015-02-25 16:08:18 -080053 loader_(nullptr),
54 file_length_(0),
55 file_contents_(nullptr) {
56 memset(&hints_, 0, sizeof(hints_));
57 memset(&file_access_, 0, sizeof(file_access_));
58 memset(&file_avail_, 0, sizeof(file_avail_));
Tom Sepeza72e8e22015-10-07 10:17:53 -070059 delegate_ = default_delegate_.get();
Tom Sepez4cb0fa72015-02-25 16:08:18 -080060
Tom Sepez452b4f32015-10-13 09:27:27 -070061#ifdef PDF_ENABLE_V8
Tom Sepez96d13342015-01-16 14:59:26 -080062#ifdef V8_USE_EXTERNAL_STARTUP_DATA
thestigc08cd7a2016-06-27 09:47:59 -070063 if (g_v8_natives && g_v8_snapshot) {
64 InitializeV8ForPDFium(g_exe_path, std::string(), nullptr, nullptr,
65 &platform_);
66 } else {
67 g_v8_natives = new v8::StartupData;
68 g_v8_snapshot = new v8::StartupData;
69 InitializeV8ForPDFium(g_exe_path, std::string(), g_v8_natives,
70 g_v8_snapshot, &platform_);
71 }
Tom Sepezd831dc72015-10-19 16:04:22 -070072#else
thestigc08cd7a2016-06-27 09:47:59 -070073 InitializeV8ForPDFium(g_exe_path, &platform_);
Tom Sepez96d13342015-01-16 14:59:26 -080074#endif // V8_USE_EXTERNAL_STARTUP_DATA
Tom Sepez452b4f32015-10-13 09:27:27 -070075#endif // FPDF_ENABLE_V8
Tom Sepezf288bb12015-11-20 12:12:46 -080076}
Tom Sepez96d13342015-01-16 14:59:26 -080077
jochen38a1f0a2016-05-31 12:07:40 -070078EmbedderTest::~EmbedderTest() {
79#ifdef PDF_ENABLE_V8
80 v8::V8::ShutdownPlatform();
81 delete platform_;
82#endif // PDF_ENABLE_V8
83}
Tom Sepezf288bb12015-11-20 12:12:46 -080084
85void EmbedderTest::SetUp() {
Tom Sepeza72e8e22015-10-07 10:17:53 -070086 FPDF_LIBRARY_CONFIG config;
87 config.version = 2;
88 config.m_pUserFontPaths = nullptr;
Tom Sepeza72e8e22015-10-07 10:17:53 -070089 config.m_v8EmbedderSlot = 0;
Tom Sepez452b4f32015-10-13 09:27:27 -070090 config.m_pIsolate = external_isolate_;
Tom Sepeza72e8e22015-10-07 10:17:53 -070091 FPDF_InitLibraryWithConfig(&config);
Tom Sepez96d13342015-01-16 14:59:26 -080092
Nico Weber9d8ec5a2015-08-04 13:00:21 -070093 UNSUPPORT_INFO* info = static_cast<UNSUPPORT_INFO*>(this);
94 memset(info, 0, sizeof(UNSUPPORT_INFO));
95 info->version = 1;
96 info->FSDK_UnSupport_Handler = UnsupportedHandlerTrampoline;
97 FSDK_SetUnSpObjProcessHandler(info);
98}
Tom Sepez96d13342015-01-16 14:59:26 -080099
100void EmbedderTest::TearDown() {
Tom Sepezda8189e2015-01-30 14:41:50 -0800101 if (document_) {
Lei Zhangd27acae2015-05-15 15:36:02 -0700102 FORM_DoDocumentAAction(form_handle_, FPDFDOC_AACTION_WC);
Tom Sepezc46d0002015-11-30 15:46:36 -0800103 FPDFDOC_ExitFormFillEnvironment(form_handle_);
104 FPDF_CloseDocument(document_);
Tom Sepezda8189e2015-01-30 14:41:50 -0800105 }
Tom Sepezc46d0002015-11-30 15:46:36 -0800106
Tom Sepez96d13342015-01-16 14:59:26 -0800107 FPDFAvail_Destroy(avail_);
108 FPDF_DestroyLibrary();
Tom Sepez452b4f32015-10-13 09:27:27 -0700109
Lei Zhangd27acae2015-05-15 15:36:02 -0700110 delete loader_;
Tom Sepez96d13342015-01-16 14:59:26 -0800111}
112
Tom Sepezd483eb42016-01-06 10:03:59 -0800113bool EmbedderTest::CreateEmptyDocument() {
114 document_ = FPDF_CreateNewDocument();
115 if (!document_)
116 return false;
117
118 SetupFormFillEnvironment();
119 return true;
120}
121
Jun Fangdf7f3662015-11-10 18:29:18 +0800122bool EmbedderTest::OpenDocument(const std::string& filename,
thestig27ddf162016-05-23 15:06:59 -0700123 const char* password,
Jun Fangdf7f3662015-11-10 18:29:18 +0800124 bool must_linearize) {
Wei Li091f7a02015-11-09 12:09:55 -0800125 std::string file_path;
126 if (!PathService::GetTestFilePath(filename, &file_path))
127 return false;
128 file_contents_ = GetFileContents(file_path.c_str(), &file_length_);
Dan Sinclair6be2aab2015-10-28 13:58:49 -0400129 if (!file_contents_)
Tom Sepez96d13342015-01-16 14:59:26 -0800130 return false;
Tom Sepez96d13342015-01-16 14:59:26 -0800131
thestig29ce9232016-06-22 07:03:23 -0700132 EXPECT_TRUE(!loader_);
Tom Sepez0aa35312016-01-06 10:16:32 -0800133 loader_ = new TestLoader(file_contents_.get(), file_length_);
Tom Sepez96d13342015-01-16 14:59:26 -0800134 file_access_.m_FileLen = static_cast<unsigned long>(file_length_);
Tom Sepezd831dc72015-10-19 16:04:22 -0700135 file_access_.m_GetBlock = TestLoader::GetBlock;
Tom Sepez96d13342015-01-16 14:59:26 -0800136 file_access_.m_Param = loader_;
137
138 file_avail_.version = 1;
139 file_avail_.IsDataAvail = Is_Data_Avail;
140
141 hints_.version = 1;
142 hints_.AddSegment = Add_Segment;
143
144 avail_ = FPDFAvail_Create(&file_avail_, &file_access_);
Tom Sepez96d13342015-01-16 14:59:26 -0800145
Jun Fangdf7f3662015-11-10 18:29:18 +0800146 if (FPDFAvail_IsLinearized(avail_) == PDF_LINEARIZED) {
thestig27ddf162016-05-23 15:06:59 -0700147 document_ = FPDFAvail_GetDocument(avail_, password);
Jun Fangdf7f3662015-11-10 18:29:18 +0800148 if (!document_) {
149 return false;
150 }
151 int32_t nRet = PDF_DATA_NOTAVAIL;
152 while (nRet == PDF_DATA_NOTAVAIL) {
153 nRet = FPDFAvail_IsDocAvail(avail_, &hints_);
154 }
155 if (nRet == PDF_DATA_ERROR) {
156 return false;
157 }
158 nRet = FPDFAvail_IsFormAvail(avail_, &hints_);
159 if (nRet == PDF_FORM_ERROR || nRet == PDF_FORM_NOTAVAIL) {
160 return false;
161 }
162 int page_count = FPDF_GetPageCount(document_);
163 for (int i = 0; i < page_count; ++i) {
164 nRet = PDF_DATA_NOTAVAIL;
165 while (nRet == PDF_DATA_NOTAVAIL) {
166 nRet = FPDFAvail_IsPageAvail(avail_, i, &hints_);
167 }
168 if (nRet == PDF_DATA_ERROR) {
169 return false;
170 }
171 }
172 } else {
173 if (must_linearize) {
174 return false;
175 }
tsepez0fdeeb82016-12-19 10:02:06 -0800176 document_ = FPDF_LoadCustomDocument(&file_access_, password);
Jun Fangdf7f3662015-11-10 18:29:18 +0800177 if (!document_) {
178 return false;
179 }
180 }
Dan Sinclair6be2aab2015-10-28 13:58:49 -0400181
Dan Sinclair14aacd52017-05-18 14:11:29 -0400182 SetupFormFillEnvironment();
183
Tom Sepezc46d0002015-11-30 15:46:36 -0800184#ifdef PDF_ENABLE_XFA
JUN FANG827a1722015-03-05 13:39:21 -0800185 int docType = DOCTYPE_PDF;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700186 if (FPDF_HasXFAField(document_, &docType)) {
JUN FANG827a1722015-03-05 13:39:21 -0800187 if (docType != DOCTYPE_PDF)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700188 (void)FPDF_LoadXFA(document_);
JUN FANG827a1722015-03-05 13:39:21 -0800189 }
Tom Sepezc46d0002015-11-30 15:46:36 -0800190#endif // PDF_ENABLE_XFA
Dan Sinclair6be2aab2015-10-28 13:58:49 -0400191
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700192 (void)FPDF_GetDocPermissions(document_);
Tom Sepezd483eb42016-01-06 10:03:59 -0800193 return true;
194}
Tom Sepez96d13342015-01-16 14:59:26 -0800195
Tom Sepezd483eb42016-01-06 10:03:59 -0800196void EmbedderTest::SetupFormFillEnvironment() {
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800197 IPDF_JSPLATFORM* platform = static_cast<IPDF_JSPLATFORM*>(this);
198 memset(platform, 0, sizeof(IPDF_JSPLATFORM));
Jochen Eisinger06b60022015-07-30 17:44:35 +0200199 platform->version = 2;
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800200 platform->app_alert = AlertTrampoline;
Dan Sinclair14aacd52017-05-18 14:11:29 -0400201 platform->m_isolate = external_isolate_;
Tom Sepez96d13342015-01-16 14:59:26 -0800202
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800203 FPDF_FORMFILLINFO* formfillinfo = static_cast<FPDF_FORMFILLINFO*>(this);
204 memset(formfillinfo, 0, sizeof(FPDF_FORMFILLINFO));
Lei Zhangcd396952015-11-04 20:26:50 -0800205#ifdef PDF_ENABLE_XFA
206 formfillinfo->version = 2;
Tom Sepezc46d0002015-11-30 15:46:36 -0800207#else // PDF_ENABLE_XFA
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800208 formfillinfo->version = 1;
Tom Sepezc46d0002015-11-30 15:46:36 -0800209#endif // PDF_ENABLE_XFA
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700210 formfillinfo->FFI_SetTimer = SetTimerTrampoline;
211 formfillinfo->FFI_KillTimer = KillTimerTrampoline;
Tom Sepez396e8722015-09-09 10:16:08 -0700212 formfillinfo->FFI_GetPage = GetPageTrampoline;
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800213 formfillinfo->m_pJsPlatform = platform;
Tom Sepez96d13342015-01-16 14:59:26 -0800214
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800215 form_handle_ = FPDFDOC_InitFormFillEnvironment(document_, formfillinfo);
Tom Sepezda8189e2015-01-30 14:41:50 -0800216 FPDF_SetFormFieldHighlightColor(form_handle_, 0, 0xFFE4DD);
217 FPDF_SetFormFieldHighlightAlpha(form_handle_, 100);
Tom Sepez96d13342015-01-16 14:59:26 -0800218}
219
Tom Sepezda8189e2015-01-30 14:41:50 -0800220void EmbedderTest::DoOpenActions() {
221 FORM_DoDocumentJSAction(form_handle_);
222 FORM_DoDocumentOpenAction(form_handle_);
Tom Sepez96d13342015-01-16 14:59:26 -0800223}
224
225int EmbedderTest::GetFirstPageNum() {
226 int first_page = FPDFAvail_GetFirstPageNum(document_);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700227 (void)FPDFAvail_IsPageAvail(avail_, first_page, &hints_);
Tom Sepez96d13342015-01-16 14:59:26 -0800228 return first_page;
229}
230
231int EmbedderTest::GetPageCount() {
232 int page_count = FPDF_GetPageCount(document_);
233 for (int i = 0; i < page_count; ++i) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700234 (void)FPDFAvail_IsPageAvail(avail_, i, &hints_);
Tom Sepez96d13342015-01-16 14:59:26 -0800235 }
236 return page_count;
237}
238
Tom Sepezda8189e2015-01-30 14:41:50 -0800239FPDF_PAGE EmbedderTest::LoadPage(int page_number) {
weili0dadcc62016-08-23 21:10:57 -0700240 // First check whether it is loaded already.
241 auto it = page_map_.find(page_number);
242 if (it != page_map_.end())
243 return it->second;
244
Tom Sepez96d13342015-01-16 14:59:26 -0800245 FPDF_PAGE page = FPDF_LoadPage(document_, page_number);
246 if (!page) {
247 return nullptr;
248 }
Tom Sepezda8189e2015-01-30 14:41:50 -0800249 FORM_OnAfterLoadPage(page, form_handle_);
250 FORM_DoPageAAction(page, form_handle_, FPDFPAGE_AACTION_OPEN);
weili0dadcc62016-08-23 21:10:57 -0700251 // Cache the page.
252 page_map_[page_number] = page;
dsinclaircb92dc72016-09-07 09:02:48 -0700253 page_reverse_map_[page] = page_number;
Tom Sepez396e8722015-09-09 10:16:08 -0700254 return page;
255}
256
Tom Sepezda8189e2015-01-30 14:41:50 -0800257FPDF_BITMAP EmbedderTest::RenderPage(FPDF_PAGE page) {
Jane Liuc533f4b2017-06-19 11:13:00 -0400258 return RenderPageWithFlags(page, 0);
259}
260
261FPDF_BITMAP EmbedderTest::RenderPageWithFlags(FPDF_PAGE page, int flags) {
Tom Sepez96d13342015-01-16 14:59:26 -0800262 int width = static_cast<int>(FPDF_GetPageWidth(page));
263 int height = static_cast<int>(FPDF_GetPageHeight(page));
Lei Zhang453d96b2015-12-31 13:13:10 -0800264 int alpha = FPDFPage_HasTransparency(page) ? 1 : 0;
265 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha);
266 FPDF_DWORD fill_color = alpha ? 0x00000000 : 0xFFFFFFFF;
267 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color);
Jane Liuc533f4b2017-06-19 11:13:00 -0400268 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, flags);
Tom Sepezda8189e2015-01-30 14:41:50 -0800269 FPDF_FFLDraw(form_handle_, bitmap, page, 0, 0, width, height, 0, 0);
Tom Sepez96d13342015-01-16 14:59:26 -0800270 return bitmap;
271}
272
Tom Sepezda8189e2015-01-30 14:41:50 -0800273void EmbedderTest::UnloadPage(FPDF_PAGE page) {
274 FORM_DoPageAAction(page, form_handle_, FPDFPAGE_AACTION_CLOSE);
275 FORM_OnBeforeClosePage(page, form_handle_);
Tom Sepez96d13342015-01-16 14:59:26 -0800276 FPDF_ClosePage(page);
dsinclaircb92dc72016-09-07 09:02:48 -0700277
278 auto it = page_reverse_map_.find(page);
279 if (it == page_reverse_map_.end())
280 return;
281
282 page_map_.erase(it->second);
283 page_reverse_map_.erase(it);
Tom Sepez96d13342015-01-16 14:59:26 -0800284}
Tom Sepez1b1bb492015-01-22 17:36:32 -0800285
weili0dadcc62016-08-23 21:10:57 -0700286FPDF_PAGE EmbedderTest::Delegate::GetPage(FPDF_FORMFILLINFO* info,
Tom Sepez396e8722015-09-09 10:16:08 -0700287 FPDF_DOCUMENT document,
288 int page_index) {
weili0dadcc62016-08-23 21:10:57 -0700289 EmbedderTest* test = static_cast<EmbedderTest*>(info);
290 auto it = test->page_map_.find(page_index);
291 return it != test->page_map_.end() ? it->second : nullptr;
Tom Sepez396e8722015-09-09 10:16:08 -0700292}
293
Tom Sepez4cb0fa72015-02-25 16:08:18 -0800294// static
295void EmbedderTest::UnsupportedHandlerTrampoline(UNSUPPORT_INFO* info,
296 int type) {
297 EmbedderTest* test = static_cast<EmbedderTest*>(info);
298 test->delegate_->UnsupportedHandler(type);
299}
300
301// static
302int EmbedderTest::AlertTrampoline(IPDF_JSPLATFORM* platform,
303 FPDF_WIDESTRING message,
304 FPDF_WIDESTRING title,
305 int type,
306 int icon) {
307 EmbedderTest* test = static_cast<EmbedderTest*>(platform);
308 return test->delegate_->Alert(message, title, type, icon);
309}
310
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700311// static
312int EmbedderTest::SetTimerTrampoline(FPDF_FORMFILLINFO* info,
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700313 int msecs,
314 TimerCallback fn) {
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700315 EmbedderTest* test = static_cast<EmbedderTest*>(info);
316 return test->delegate_->SetTimer(msecs, fn);
317}
318
319// static
320void EmbedderTest::KillTimerTrampoline(FPDF_FORMFILLINFO* info, int id) {
321 EmbedderTest* test = static_cast<EmbedderTest*>(info);
322 return test->delegate_->KillTimer(id);
323}
324
Tom Sepez396e8722015-09-09 10:16:08 -0700325// static
326FPDF_PAGE EmbedderTest::GetPageTrampoline(FPDF_FORMFILLINFO* info,
327 FPDF_DOCUMENT document,
328 int page_index) {
weili0dadcc62016-08-23 21:10:57 -0700329 return static_cast<EmbedderTest*>(info)->delegate_->GetPage(info, document,
330 page_index);
Tom Sepez396e8722015-09-09 10:16:08 -0700331}
332
Dan Sinclair957480c2017-06-13 15:21:14 -0400333std::string EmbedderTest::HashBitmap(FPDF_BITMAP bitmap,
334 int expected_width,
335 int expected_height) {
336 uint8_t digest[16];
337 CRYPT_MD5Generate(static_cast<uint8_t*>(FPDFBitmap_GetBuffer(bitmap)),
338 expected_width * 4 * expected_height, digest);
339 return CryptToBase16(digest);
340}
341
thestigbcd3e532016-11-21 13:37:28 -0800342// static
343void EmbedderTest::CompareBitmap(FPDF_BITMAP bitmap,
344 int expected_width,
345 int expected_height,
346 const char* expected_md5sum) {
347 ASSERT_EQ(expected_width, FPDFBitmap_GetWidth(bitmap));
348 ASSERT_EQ(expected_height, FPDFBitmap_GetHeight(bitmap));
349 const int expected_stride = expected_width * 4;
350 ASSERT_EQ(expected_stride, FPDFBitmap_GetStride(bitmap));
351
352 if (!expected_md5sum)
353 return;
354
Dan Sinclair957480c2017-06-13 15:21:14 -0400355 EXPECT_EQ(expected_md5sum,
356 HashBitmap(bitmap, expected_width, expected_height));
thestigbcd3e532016-11-21 13:37:28 -0800357}
358
Tom Sepez1b1bb492015-01-22 17:36:32 -0800359// Can't use gtest-provided main since we need to stash the path to the
360// executable in order to find the external V8 binary data files.
361int main(int argc, char** argv) {
thestigc08cd7a2016-06-27 09:47:59 -0700362 g_exe_path = argv[0];
Tom Sepez1b1bb492015-01-22 17:36:32 -0800363 testing::InitGoogleTest(&argc, argv);
Tom Sepeza310e002015-02-27 13:03:07 -0800364 testing::InitGoogleMock(&argc, argv);
thestigc08cd7a2016-06-27 09:47:59 -0700365 int ret_val = RUN_ALL_TESTS();
366
367#ifdef PDF_ENABLE_V8
368#ifdef V8_USE_EXTERNAL_STARTUP_DATA
369 if (g_v8_natives)
370 free(const_cast<char*>(g_v8_natives->data));
371 if (g_v8_snapshot)
372 free(const_cast<char*>(g_v8_snapshot->data));
373#endif // V8_USE_EXTERNAL_STARTUP_DATA
374#endif // PDF_ENABLE_V8
375
376 return ret_val;
Tom Sepez1b1bb492015-01-22 17:36:32 -0800377}