Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_browsertest.cc

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed IO/UI typo and rebased. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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.
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | chrome/browser/net/http_server_properties_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698