Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(28)

Side by Side Diff: gears/cctests/test.cc

Issue 800: Database2Versions table, get/set version operations implemented (Closed) SVN Base: http://google-gears.googlecode.com/svn/contrib/dimitri.glazkov/database2/
Patch Set: Created 4 months, 4 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2007, Google Inc. 1 // Copyright 2007, Google Inc.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are met: 4 // modification, are permitted provided that the following conditions are met:
5 // 5 //
6 // 1. Redistributions of source code must retain the above copyright notice, 6 // 1. Redistributions of source code must retain the above copyright notice,
7 // this list of conditions and the following disclaimer. 7 // this list of conditions and the following disclaimer.
8 // 2. Redistributions in binary form must reproduce the above copyright notice, 8 // 2. Redistributions in binary form must reproduce the above copyright notice,
9 // this list of conditions and the following disclaimer in the documentation 9 // this list of conditions and the following disclaimer in the documentation
10 // and/or other materials provided with the distribution. 10 // and/or other materials provided with the distribution.
(...skipping 43 matching lines...) Show 10 above Show 10 below
54 // the #define max on win32 conflicts with std::numeric_limits<T>::max() 54 // the #define max on win32 conflicts with std::numeric_limits<T>::max()
55 #if defined(WIN32) && defined(max) 55 #if defined(WIN32) && defined(max)
56 #undef max 56 #undef max
57 #endif 57 #endif
58 #endif 58 #endif
59 59
60 #include <cmath> 60 #include <cmath>
61 #include <limits> 61 #include <limits>
62 #include <sstream> 62 #include <sstream>
63 63
64 #include "gears/base/common/database2_versions_table_test.h"
64 #include "gears/base/common/name_value_table_test.h" 65 #include "gears/base/common/name_value_table_test.h"
65 #include "gears/base/common/permissions_db.h" 66 #include "gears/base/common/permissions_db.h"
66 #include "gears/base/common/permissions_db_test.h" 67 #include "gears/base/common/permissions_db_test.h"
67 #include "gears/base/common/sqlite_wrapper_test.h" 68 #include "gears/base/common/sqlite_wrapper_test.h"
68 #include "gears/base/common/string_utils.h" 69 #include "gears/base/common/string_utils.h"
69 #include "gears/database/common/database_utils_test.h" 70 #include "gears/database/common/database_utils_test.h"
70 #include "gears/localserver/common/http_cookies.h" 71 #include "gears/localserver/common/http_cookies.h"
71 #include "gears/localserver/common/http_request.h" 72 #include "gears/localserver/common/http_request.h"
72 #include "gears/localserver/common/localserver_db.h" 73 #include "gears/localserver/common/localserver_db.h"
73 #include "gears/localserver/common/managed_resource_store.h" 74 #include "gears/localserver/common/managed_resource_store.h"
(...skipping 82 matching lines...) Show 10 above Show 10 below
156 ok &= TestFileUtils(); 157 ok &= TestFileUtils();
157 ok &= TestUrlUtils(); 158 ok &= TestUrlUtils();
158 ok &= TestParseHttpStatusLine(); 159 ok &= TestParseHttpStatusLine();
159 ok &= TestHttpRequest(); 160 ok &= TestHttpRequest();
160 ok &= TestHttpCookies(); 161 ok &= TestHttpCookies();
161 ok &= TestSecurityModel(); 162 ok &= TestSecurityModel();
162 ok &= TestSqliteUtilsAll(); 163 ok &= TestSqliteUtilsAll();
163 ok &= TestNameValueTableAll(); 164 ok &= TestNameValueTableAll();
164 ok &= TestPermissionsDBAll(); 165 ok &= TestPermissionsDBAll();
165 ok &= TestDatabaseUtilsAll(); 166 ok &= TestDatabaseUtilsAll();
167 ok &= TestDatabase2VersionsTable();
166 ok &= TestLocalServerDB(); 168 ok &= TestLocalServerDB();
167 ok &= TestResourceStore(); 169 ok &= TestResourceStore();
168 ok &= TestManifest(); 170 ok &= TestManifest();
169 ok &= TestManagedResourceStore(); 171 ok &= TestManagedResourceStore();
170 ok &= TestMessageService(); 172 ok &= TestMessageService();
171 ok &= TestSerialization(); 173 ok &= TestSerialization();
172 ok &= TestCircularBuffer(); 174 ok &= TestCircularBuffer();
173 ok &= TestRefCount(); 175 ok &= TestRefCount();
174 #ifndef OFFICIAL_BUILD 176 #ifndef OFFICIAL_BUILD
175 // The blob API has not been finalized for official builds 177 // The blob API has not been finalized for official builds
(...skipping 1336 matching lines...) Show 10 above Show 10 below
1512 TEST_ASSERT(out->SetPropertyObject(STRING16(L"obj"), obj)); 1514 TEST_ASSERT(out->SetPropertyObject(STRING16(L"obj"), obj));
1513 } 1515 }
1514 1516
1515 void CreateObjectFunction(JsCallContext* context, 1517 void CreateObjectFunction(JsCallContext* context,
1516 JsRootedCallback* func, 1518 JsRootedCallback* func,
1517 JsObject* out) { 1519 JsObject* out) {
1518 TEST_ASSERT(out->SetPropertyFunction(STRING16(L"func"), func)); 1520 TEST_ASSERT(out->SetPropertyFunction(STRING16(L"func"), func));
1519 } 1521 }
1520 1522
1521 #endif // DEBUG 1523 #endif // DEBUG
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338