| 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 7 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 8 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 8 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 RunScriptAndCheckResult(L"insertRecord('text')", "done"); | 105 RunScriptAndCheckResult(L"insertRecord('text')", "done"); |
| 106 RunScriptAndCheckResult(L"getRecords()", "text"); | 106 RunScriptAndCheckResult(L"getRecords()", "text"); |
| 107 | 107 |
| 108 RemoveAndWait(BrowsingDataRemover::REMOVE_SITE_DATA); | 108 RemoveAndWait(BrowsingDataRemover::REMOVE_SITE_DATA); |
| 109 | 109 |
| 110 ui_test_utils::NavigateToURL(browser(), url); | 110 ui_test_utils::NavigateToURL(browser(), url); |
| 111 RunScriptAndCheckResult(L"createTable()", "done"); | 111 RunScriptAndCheckResult(L"createTable()", "done"); |
| 112 RunScriptAndCheckResult(L"insertRecord('text2')", "done"); | 112 RunScriptAndCheckResult(L"insertRecord('text2')", "done"); |
| 113 RunScriptAndCheckResult(L"getRecords()", "text2"); | 113 RunScriptAndCheckResult(L"getRecords()", "text2"); |
| 114 } | 114 } |
| 115 |
| 116 // Profile::ClearNetworkingHistorySince should be exercised here too see whether |
| 117 // the call gets delegated through ProfileIO[Impl]Data properly, which is hard |
| 118 // to write unit-tests for. Currently this is done by both of the above tests. |
| 119 // Add standalone test if this changes. |
| OLD | NEW |