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

Unified Diff: pkg/analysis_server/test/index/page_node_manager_test.dart

Issue 321953002: FilePageManager - disk based PageManager. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improved tests. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/index/page_node_manager_test.dart
diff --git a/pkg/analysis_server/test/index/page_node_manager_test.dart b/pkg/analysis_server/test/index/page_node_manager_test.dart
index ab5067eae22d23aaf7513316395b9e527c2a1fd1..9db43ac003b4c665b6ae906e2d6d8a249250c738 100644
--- a/pkg/analysis_server/test/index/page_node_manager_test.dart
+++ b/pkg/analysis_server/test/index/page_node_manager_test.dart
@@ -44,11 +44,9 @@ _treeWithPageNodeManager() {
NodeManager<int, String, int> nodeManager = new PageNodeManager<int, String>(
pageManager, Uint32Codec.INSTANCE, new FixedStringCodec(7));
// NodeManager<int, String, int> nodeManager = new MemoryNodeManager();
- int maxIndexKeys = (pageSize - 64) ~/ (4 + 4);
- int maxLeafKeys = (pageSize - 64) ~/ (4 + (2 + 2 * 7));
- print('maxIndexKeys: $maxIndexKeys maxLeafKeys: $maxLeafKeys');
- BPlusTree<int, String, int> tree = new BPlusTree(maxIndexKeys, maxLeafKeys,
- _intComparator, nodeManager);
+ print('maxIndexKeys: ${nodeManager.maxIndexKeys} '
+ 'maxLeafKeys: ${nodeManager.maxLeafKeys}');
+ BPlusTree<int, String, int> tree = new BPlusTree(_intComparator, nodeManager);
int maxKey = 1000000;
int tryCount = 1000;
Set<int> keys = new Set<int>();
« no previous file with comments | « pkg/analysis_server/test/index/file_page_manager_test.dart ('k') | pkg/analysis_server/test/index/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698