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

Side by Side Diff: ppapi/tests/test_flash_file.cc

Issue 10696206: PPAPI (Flash): Fix FileModuleLocal::GetDirContents(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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 | « ppapi/cpp/private/flash_file.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/tests/test_flash_file.h" 5 #include "ppapi/tests/test_flash_file.h"
6 6
7 #include "ppapi/cpp/module.h" 7 #include "ppapi/cpp/module.h"
8 #include "ppapi/cpp/private/flash_file.h" 8 #include "ppapi/cpp/private/flash_file.h"
9 #include "ppapi/tests/testing_instance.h" 9 #include "ppapi/tests/testing_instance.h"
10 #include "ppapi/tests/test_utils.h" 10 #include "ppapi/tests/test_utils.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 size_t after_close = 0; 116 size_t after_close = 0;
117 ASSERT_SUBTEST_SUCCESS(GetItemCountUnderModuleLocalRoot(&after_close)); 117 ASSERT_SUBTEST_SUCCESS(GetItemCountUnderModuleLocalRoot(&after_close));
118 ASSERT_EQ(before_create, after_close); 118 ASSERT_EQ(before_create, after_close);
119 119
120 PASS(); 120 PASS();
121 } 121 }
122 122
123 std::string TestFlashFile::GetItemCountUnderModuleLocalRoot( 123 std::string TestFlashFile::GetItemCountUnderModuleLocalRoot(
124 size_t* item_count) { 124 size_t* item_count) {
125 std::vector<PP_DirEntry_Dev> contents; 125 std::vector<FileModuleLocal::DirEntry> contents;
126 ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &contents)); 126 ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &contents));
127 *item_count = contents.size(); 127 *item_count = contents.size();
128 PASS(); 128 PASS();
129 } 129 }
OLDNEW
« no previous file with comments | « ppapi/cpp/private/flash_file.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698