HomeSort by relevance Sort by last modified time
    Searched refs:statement (Results 1 - 25 of 125) sorted by null

1 2 3 4 5

  /external/protobuf/gtest/include/gtest/
gtest-death-test.h 154 // Asserts that a given statement causes the program to exit, with an
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 #define EXPECT_EXIT(statement, predicate, regex) \
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
165 // Asserts that a given statement causes the program to exit, either by
168 #define ASSERT_DEATH(statement, regex) \
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 #define EXPECT_DEATH(statement, regex) \
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex
    [all...]
gtest-spi.h 117 // statement will cause exactly one fatal Google Test failure with 'substr'
124 // The verification of the assertion is done correctly even when the statement
128 // - 'statement' cannot reference local non-static variables or
130 // - 'statement' cannot return a value.
138 #define EXPECT_FATAL_FAILURE(statement, substr) \
142 static void Execute() { statement; }\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
159 static void Execute() { statement; }\
174 // statement will cause exactly one non-fatal Google Test failure with 'substr'
181 // 'statement' is allowed to reference local variables and members o
    [all...]
  /external/webkit/WebCore/page/
GeolocationPositionCache.cpp 102 SQLiteStatement statement(database, "SELECT * FROM CachedPosition");
103 if (statement.prepare() != SQLResultOk)
106 if (statement.step() != SQLResultRow)
109 bool providesAltitude = statement.getColumnValue(2).type() != SQLValue::NullValue;
110 bool providesAltitudeAccuracy = statement.getColumnValue(4).type() != SQLValue::NullValue;
111 bool providesHeading = statement.getColumnValue(5).type() != SQLValue::NullValue;
112 bool providesSpeed = statement.getColumnValue(6).type() != SQLValue::NullValue;
113 RefPtr<Coordinates> coordinates = Coordinates::create(statement.getColumnDouble(0), // latitude
114 statement.getColumnDouble(1), // longitude
115 providesAltitude, statement.getColumnDouble(2), // altitud
    [all...]
  /external/chromium/sdch/open-vcdiff/src/gtest/
gtest-death-test.h 99 // Asserts that a given statement causes the program to exit, with an
102 #define ASSERT_EXIT(statement, predicate, regex) \
103 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_FATAL_FAILURE)
107 #define EXPECT_EXIT(statement, predicate, regex) \
108 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_NONFATAL_FAILURE)
110 // Asserts that a given statement causes the program to exit, either by
113 #define ASSERT_DEATH(statement, regex) \
114 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
118 #define EXPECT_DEATH(statement, regex) \
119 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex
    [all...]
  /external/gtest/include/gtest/
gtest-death-test.h 154 // Asserts that a given statement causes the program to exit, with an
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 #define EXPECT_EXIT(statement, predicate, regex) \
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
165 // Asserts that a given statement causes the program to exit, either by
168 #define ASSERT_DEATH(statement, regex) \
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 #define EXPECT_DEATH(statement, regex) \
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex
    [all...]
gtest-spi.h 117 // statement will cause exactly one fatal Google Test failure with 'substr'
124 // The verification of the assertion is done correctly even when the statement
128 // - 'statement' cannot reference local non-static variables or
130 // - 'statement' cannot return a value.
138 #define EXPECT_FATAL_FAILURE(statement, substr) \
142 static void Execute() { statement; }\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
159 static void Execute() { statement; }\
174 // statement will cause exactly one non-fatal Google Test failure with 'substr'
181 // 'statement' is allowed to reference local variables and members o
    [all...]
  /libcore/luni/src/main/java/javax/sql/
StatementEvent.java 25 * A statement event that a PreparedStatement is closed
35 private PreparedStatement statement; field in class:StatementEvent
42 * @param statement
43 * the statement to be closed
47 public StatementEvent(PooledConnection con, PreparedStatement statement,
50 this.statement = statement;
59 * @param statement
60 * the statement to be closed
62 public StatementEvent(PooledConnection con, PreparedStatement statement) {
    [all...]
  /libcore/luni/src/test/java/tests/support/
DatabaseCreator.java 22 import java.sql.Statement;
257 Statement statement = conn.createStatement(); local
258 statement
260 statement.execute("INSERT INTO " + PARENT_TABLE + " VALUES(2,'test2')");
261 statement
266 Statement statement = conn.createStatement(); local
267 statement.execute("INSERT INTO " + FKSTRICT_TABLE
269 statement.execute("INSERT INTO " + FKSTRICT_TABL
276 Statement statement = conn.createStatement(); local
286 Statement statement = conn.createStatement(); local
293 Statement statement = conn.createStatement(); local
301 Statement statement = conn.createStatement(); local
312 Statement statement = conn.createStatement(); local
324 Statement statement = conn.createStatement(); local
340 Statement statement = conn.createStatement(); local
352 Statement statement = conn.createStatement(); local
370 Statement statement = conn.createStatement(); local
386 Statement statement = conn.createStatement(); local
396 Statement statement = conn.createStatement(); local
    [all...]
  /cts/tests/tests/database/src/android/database/sqlite/cts/
SQLiteProgramTest.java 69 final String statement = "DELETE FROM test WHERE _id=?;"; local
70 SQLiteStatement statementOne = mDatabase.compileStatement(statement);
71 SQLiteStatement statementTwo = mDatabase.compileStatement(statement);
72 // since the same compiled statement is being accessed at the same time by 2 different
73 // objects, they each get their own statement id
78 statementOne = mDatabase.compileStatement(statement);
81 statementTwo = mDatabase.compileStatement(statement);
104 final String statement = "DELETE FROM test WHERE _id=?;"; local
105 SQLiteStatement statementOne = mDatabase.compileStatement(statement);
124 final String statement = "DELETE FROM test WHERE _id=?;" local
167 SQLiteStatement statement; local
243 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test " + local
279 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test " + local
    [all...]
SQLiteStatementTest.java 75 SQLiteStatement statement = mDatabase.compileStatement( local
77 statement.execute();
85 // invalid SQL statement
86 statement = mDatabase.compileStatement(
89 statement.execute();
96 statement.close();
118 SQLiteStatement statement = mDatabase.compileStatement( local
120 assertEquals(1, statement.executeInsert());
128 // invalid SQL statement
129 statement = mDatabase.compileStatement
150 SQLiteStatement statement = local
179 SQLiteStatement statement = local
    [all...]
DatabaseStatementTest.java 83 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); local
84 statement.execute();
89 statement.close();
132 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
135 statement.bindLong(1, i);
136 statement.execute();
138 statement.close();
154 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
157 statement.bindString(1, Long.toHexString(i));
158 statement.execute()
176 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
198 String statement = "INSERT INTO test (num, value) VALUES (?,?)"; local
222 SQLiteStatement statement = local
285 SQLiteStatement statement = local
300 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
    [all...]
  /external/chromium/net/data/proxy_resolver_v8_unittest/
ends_with_statement_no_semicolon.js 1 // Ends with a statement, and no terminal newline.
  /external/webkit/WebCore/manual-tests/inspector/resources/
loop-statements.js 19 function statement() function
  /libcore/luni/src/test/java/tests/java/sql/
InsertFunctionalityTest.java 29 import java.sql.Statement;
39 @TestTargetClass(Statement.class)
44 private static Statement statement = null; field in class:InsertFunctionalityTest
50 statement = conn.createStatement();
57 statement.close();
70 statement
74 statement
78 statement
82 statement
    [all...]
UpdateFunctionalityTest2.java 30 import java.sql.Statement;
40 @TestTargetClass(Statement.class)
45 private static Statement statement = null; field in class:UpdateFunctionalityTest2
52 statement = conn.createStatement();
64 statement.close();
77 statement
81 statement
85 statement
89 statement
    [all...]
DeleteFunctionalityTest.java 29 import java.sql.Statement;
38 @TestTargetClass(Statement.class)
43 private static Statement statement = null; field in class:DeleteFunctionalityTest
49 statement = conn.createStatement();
56 statement.close();
70 statement
74 statement
78 statement
82 statement.execute(DatabaseCreator.DROP_TABLE5)
    [all...]
UpdateFunctionalityTest.java 29 import java.sql.Statement;
39 @TestTargetClass(Statement.class)
46 private static Statement statement; field in class:UpdateFunctionalityTest
53 statement = conn.createStatement();
64 statement.close();
78 statement.execute(DatabaseCreator.DROP_TABLE1);
81 statement.execute(DatabaseCreator.DROP_TABLE2);
84 statement.execute(DatabaseCreator.DROP_TABLE3);
89 statement.execute(DatabaseCreator.CREATE_TABLE3)
    [all...]
MultiThreadAccessTest.java 28 import java.sql.Statement;
40 @TestTargetClass(Statement.class)
45 private static Statement statement; field in class:MultiThreadAccessTest
58 statement = conn.createStatement();
70 statement.close();
82 statement.execute(DatabaseCreator.DROP_TABLE1);
85 statement.execute(DatabaseCreator.DROP_TABLE2);
88 statement.execute(DatabaseCreator.DROP_TABLE4);
91 statement.execute(DatabaseCreator.DROP_TABLE3)
183 Statement statement = conn.createStatement(); local
237 Statement statement = conn.createStatement(); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseStatementTest.java 84 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); local
85 statement.execute();
90 statement.close();
133 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
136 statement.bindLong(1, i);
137 statement.execute();
139 statement.close();
155 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
158 statement.bindString(1, Long.toHexString(i));
159 statement.execute()
177 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
199 String statement = "INSERT INTO test (num, value) VALUES (?,?)"; local
223 SQLiteStatement statement = local
286 SQLiteStatement statement = local
301 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local
    [all...]
  /frameworks/base/core/jni/
android_database_SQLiteStatement.cpp 55 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
57 // Execute the statement
58 err = sqlite3_step(statement);
66 sqlite3_reset(statement);
73 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
76 // Execute the statement
77 err = sqlite3_step(statement);
82 value = sqlite3_column_int64(statement, 0);
88 sqlite3_reset(statement);
97 sqlite3_stmt * statement = GET_STATEMENT(env, object) local
    [all...]
android_database_SQLiteQuery.cpp 53 static int skip_rows(sqlite3_stmt *statement, int maxRows) {
56 int err = sqlite3_step(statement);
80 static int finish_program_and_get_row_count(sqlite3_stmt *statement) {
84 int err = sqlite3_step(statement);
103 sqlite3_reset(statement);
112 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
120 if (statement == NULL) {
121 LOGE("Invalid statement in fillWindow()");
131 err = sqlite3_bind_int(statement, offsetParam, startPos);
153 numColumns = sqlite3_column_count(statement);
320 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
327 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
    [all...]
android_database_SQLiteCompiledSql.cpp 53 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
55 // Make sure not to leak the statement if it already exists
56 if (statement != NULL) {
57 sqlite3_finalize(statement);
64 err = sqlite3_prepare16_v2(handle, sql, sqlLen * 2, &statement, NULL);
68 // Store the statement in the Java object for future calls
69 LOGV("Prepared statement %p on %p", statement, handle);
70 env->SetIntField(object, gStatementField, (int)statement);
71 return statement;
97 sqlite3_stmt * statement = GET_STATEMENT(env, object); local
    [all...]
  /external/webkit/WebCore/storage/
DatabaseTracker.cpp 173 SQLiteStatement statement(m_database, "SELECT guid FROM Databases WHERE origin=? AND name=?;");
175 if (statement.prepare() != SQLResultOk)
178 statement.bindText(1, origin->databaseIdentifier());
179 statement.bindText(2, databaseIdentifier);
181 return statement.step() == SQLResultRow;
218 SQLiteStatement statement(m_database, "SELECT path FROM Databases WHERE origin=? AND name=?;");
220 if (statement.prepare() != SQLResultOk)
223 statement.bindText(1, originIdentifier);
224 statement.bindText(2, name);
226 int result = statement.step()
    [all...]
SQLStatement.cpp 47 PassRefPtr<SQLStatement> SQLStatement::create(const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, bool readOnly)
49 return adoptRef(new SQLStatement(statement, arguments, callback, errorCallback, readOnly));
52 SQLStatement::SQLStatement(const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, bool readOnly)
53 : m_statement(statement.crossThreadString())
65 // If we're re-running this statement after a quota violation, we need to clear that error now
78 SQLiteStatement statement(*database, m_statement);
79 int result = statement.prepare();
82 LOG(StorageAPI, "Unable to verify correctness of statement %s - error %i (%s)", m_statement.ascii().data(), result, database->lastErrorMsg());
87 // FIXME: If the statement uses the ?### syntax supported by sqlite, the bind parameter count is very likely off from the number of question marks.
89 if (statement.bindParameterCount() != m_arguments.size())
    [all...]
  /external/chromium/sdch/open-vcdiff/src/gtest/internal/
gtest-death-test-internal.h 76 static bool Create(const char* statement, const RE* regex,
131 virtual bool Create(const char* statement, const RE* regex,
138 virtual bool Create(const char* statement, const RE* regex,
148 #define GTEST_DEATH_TEST(statement, predicate, regex, fail) \
153 if (!::testing::internal::DeathTest::Create(#statement, &gtest_regex, \
169 { statement; } \

Completed in 332 milliseconds

1 2 3 4 5