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" |
11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
12 #include "content/public/test/browser_test_utils.h" | 12 #include "content/public/test/browser_test_utils.h" |
13 #include "content/public/test/content_browser_test.h" | 13 #include "content/public/test/content_browser_test.h" |
14 #include "content/public/test/content_browser_test_utils.h" | 14 #include "content/public/test/content_browser_test_utils.h" |
15 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
16 #include "content/shell/browser/shell.h" | 16 #include "content/shell/browser/shell.h" |
17 #include "content/test/net/url_request_mock_http_job.h" | |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
19 | 18 |
20 namespace content { | 19 namespace content { |
21 | 20 |
22 class DatabaseTest : public ContentBrowserTest { | 21 class DatabaseTest : public ContentBrowserTest { |
23 public: | 22 public: |
24 DatabaseTest() {} | 23 DatabaseTest() {} |
25 | 24 |
26 void RunScriptAndCheckResult(Shell* shell, | 25 void RunScriptAndCheckResult(Shell* shell, |
27 const std::string& script, | 26 const std::string& script, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 Navigate(otr1); | 260 Navigate(otr1); |
262 CreateTable(otr1); | 261 CreateTable(otr1); |
263 InsertRecord(otr1, "text"); | 262 InsertRecord(otr1, "text"); |
264 | 263 |
265 Shell* otr2 = CreateOffTheRecordBrowser(); | 264 Shell* otr2 = CreateOffTheRecordBrowser(); |
266 Navigate(otr2); | 265 Navigate(otr2); |
267 CompareRecords(otr2, "text"); | 266 CompareRecords(otr2, "text"); |
268 } | 267 } |
269 | 268 |
270 } // namespace content | 269 } // namespace content |
OLD | NEW |