OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/ui/ui_test.h" | 5 #include "chrome/test/ui/ui_test.h" |
6 | 6 |
7 #include "app/sql/connection.h" | |
8 #include "app/sql/statement.h" | |
9 #include "base/file_util.h" | 7 #include "base/file_util.h" |
10 #include "chrome/test/automation/automation_proxy.h" | 8 #include "chrome/test/automation/automation_proxy.h" |
11 #include "chrome/test/automation/browser_proxy.h" | 9 #include "chrome/test/automation/browser_proxy.h" |
12 #include "chrome/test/automation/tab_proxy.h" | 10 #include "chrome/test/automation/tab_proxy.h" |
13 #include "net/test/test_server.h" | 11 #include "net/test/test_server.h" |
| 12 #include "sql/connection.h" |
| 13 #include "sql/statement.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class MultipartResponseUITest : public UITest { | 17 class MultipartResponseUITest : public UITest { |
18 }; | 18 }; |
19 | 19 |
20 #if defined(NDEBUG) | 20 #if defined(NDEBUG) |
21 // http://code.google.com/p/chromium/issues/detail?id=37746 | 21 // http://code.google.com/p/chromium/issues/detail?id=37746 |
22 // Running this test only for release builds as it fails in debug test | 22 // Running this test only for release builds as it fails in debug test |
23 // runs | 23 // runs |
(...skipping 30 matching lines...) Expand all Loading... |
54 sql::Statement statement(db.GetUniqueStatement(query.c_str())); | 54 sql::Statement statement(db.GetUniqueStatement(query.c_str())); |
55 EXPECT_TRUE(statement); | 55 EXPECT_TRUE(statement); |
56 EXPECT_TRUE(statement.Step()); | 56 EXPECT_TRUE(statement.Step()); |
57 EXPECT_EQ(1, statement.ColumnInt(0)); | 57 EXPECT_EQ(1, statement.ColumnInt(0)); |
58 } | 58 } |
59 db.Close(); | 59 db.Close(); |
60 } | 60 } |
61 #endif | 61 #endif |
62 | 62 |
63 } // namespace | 63 } // namespace |
OLD | NEW |