| OLD | NEW |
| 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 "base/strings/string_number_conversions.h" | 5 #include "base/strings/string_number_conversions.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/download_manager.h" | 8 #include "content/public/browser/download_manager.h" |
| 9 #include "content/public/browser/notification_service.h" | 9 #include "content/public/browser/notification_service.h" |
| 10 #include "content/public/browser/notification_types.h" | 10 #include "content/public/browser/notification_types.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 211 } |
| 212 | 212 |
| 213 // Verify database modifications persist after restarting browser. | 213 // Verify database modifications persist after restarting browser. |
| 214 IN_PROC_BROWSER_TEST_F(DatabaseTest, PRE_DatabasePersistsAfterRelaunch) { | 214 IN_PROC_BROWSER_TEST_F(DatabaseTest, PRE_DatabasePersistsAfterRelaunch) { |
| 215 Navigate(shell()); | 215 Navigate(shell()); |
| 216 CreateTable(shell()); | 216 CreateTable(shell()); |
| 217 InsertRecord(shell(), "text"); | 217 InsertRecord(shell(), "text"); |
| 218 } | 218 } |
| 219 | 219 |
| 220 IN_PROC_BROWSER_TEST_F(DatabaseTest, DatabasePersistsAfterRelaunch) { | 220 IN_PROC_BROWSER_TEST_F(DatabaseTest, DatabasePersistsAfterRelaunch) { |
| 221 NOTREACHED(); |
| 221 Navigate(shell()); | 222 Navigate(shell()); |
| 222 CompareRecords(shell(), "text"); | 223 CompareRecords(shell(), "text"); |
| 223 } | 224 } |
| 224 | 225 |
| 225 // Verify OTR database is removed after OTR window closes. | 226 // Verify OTR database is removed after OTR window closes. |
| 226 IN_PROC_BROWSER_TEST_F(DatabaseTest, PRE_OffTheRecordDatabaseNotPersistent) { | 227 IN_PROC_BROWSER_TEST_F(DatabaseTest, PRE_OffTheRecordDatabaseNotPersistent) { |
| 227 Shell* otr = CreateOffTheRecordBrowser(); | 228 Shell* otr = CreateOffTheRecordBrowser(); |
| 228 Navigate(otr); | 229 Navigate(otr); |
| 229 CreateTable(otr); | 230 CreateTable(otr); |
| 230 InsertRecord(otr, "text"); | 231 InsertRecord(otr, "text"); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 254 Navigate(otr1); | 255 Navigate(otr1); |
| 255 CreateTable(otr1); | 256 CreateTable(otr1); |
| 256 InsertRecord(otr1, "text"); | 257 InsertRecord(otr1, "text"); |
| 257 | 258 |
| 258 Shell* otr2 = CreateOffTheRecordBrowser(); | 259 Shell* otr2 = CreateOffTheRecordBrowser(); |
| 259 Navigate(otr2); | 260 Navigate(otr2); |
| 260 CompareRecords(otr2, "text"); | 261 CompareRecords(otr2, "text"); |
| 261 } | 262 } |
| 262 | 263 |
| 263 } // namespace content | 264 } // namespace content |
| OLD | NEW |