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

Side by Side Diff: content/browser/indexed_db/indexed_db_browsertest.cc

Issue 17840006: Move IndexedDB files out of in_process_webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 16 matching lines...) Expand all
27 #include "content/test/content_browser_test_utils.h" 27 #include "content/test/content_browser_test_utils.h"
28 #include "webkit/browser/database/database_util.h" 28 #include "webkit/browser/database/database_util.h"
29 #include "webkit/browser/quota/quota_manager.h" 29 #include "webkit/browser/quota/quota_manager.h"
30 30
31 using quota::QuotaManager; 31 using quota::QuotaManager;
32 using webkit_database::DatabaseUtil; 32 using webkit_database::DatabaseUtil;
33 33
34 namespace content { 34 namespace content {
35 35
36 // This browser test is aimed towards exercising the IndexedDB bindings and 36 // This browser test is aimed towards exercising the IndexedDB bindings and
37 // the actual implementation that lives in the browser side (in_process_webkit). 37 // the actual implementation that lives in the browser side.
38 class IndexedDBBrowserTest : public ContentBrowserTest { 38 class IndexedDBBrowserTest : public ContentBrowserTest {
39 public: 39 public:
40 IndexedDBBrowserTest() : disk_usage_(-1) {} 40 IndexedDBBrowserTest() : disk_usage_(-1) {}
41 41
42 void SimpleTest(const GURL& test_url, bool incognito = false) { 42 void SimpleTest(const GURL& test_url, bool incognito = false) {
43 // The test page will perform tests on IndexedDB, then navigate to either 43 // The test page will perform tests on IndexedDB, then navigate to either
44 // a #pass or #fail ref. 44 // a #pass or #fail ref.
45 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell(); 45 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell();
46 46
47 LOG(INFO) << "Navigating to URL and blocking."; 47 LOG(INFO) << "Navigating to URL and blocking.";
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 TitleWatcher title_watcher(new_shell->web_contents(), expected_title16); 416 TitleWatcher title_watcher(new_shell->web_contents(), expected_title16);
417 417
418 base::KillProcess( 418 base::KillProcess(
419 shell()->web_contents()->GetRenderProcessHost()->GetHandle(), 0, true); 419 shell()->web_contents()->GetRenderProcessHost()->GetHandle(), 0, true);
420 shell()->Close(); 420 shell()->Close();
421 421
422 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); 422 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle());
423 } 423 }
424 424
425 } // namespace content 425 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698