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

Side by Side Diff: content/browser/fileapi/file_system_browsertest.cc

Issue 84293002: LOG(INFO) -> VLOG(0) in content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 7 years 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/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/test/thread_test_helper.h" 9 #include "base/test/thread_test_helper.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 15 matching lines...) Expand all
26 // the actual implementation that lives in the browser side. 26 // the actual implementation that lives in the browser side.
27 class FileSystemBrowserTest : public ContentBrowserTest { 27 class FileSystemBrowserTest : public ContentBrowserTest {
28 public: 28 public:
29 FileSystemBrowserTest() {} 29 FileSystemBrowserTest() {}
30 30
31 void SimpleTest(const GURL& test_url, bool incognito = false) { 31 void SimpleTest(const GURL& test_url, bool incognito = false) {
32 // The test page will perform tests on FileAPI, then navigate to either 32 // The test page will perform tests on FileAPI, then navigate to either
33 // a #pass or #fail ref. 33 // a #pass or #fail ref.
34 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell(); 34 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell();
35 35
36 LOG(INFO) << "Navigating to URL and blocking."; 36 VLOG(0) << "Navigating to URL and blocking.";
37 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2); 37 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2);
38 LOG(INFO) << "Navigation done."; 38 VLOG(0) << "Navigation done.";
39 std::string result = 39 std::string result =
40 the_browser->web_contents()->GetLastCommittedURL().ref(); 40 the_browser->web_contents()->GetLastCommittedURL().ref();
41 if (result != "pass") { 41 if (result != "pass") {
42 std::string js_result; 42 std::string js_result;
43 ASSERT_TRUE(ExecuteScriptAndExtractString( 43 ASSERT_TRUE(ExecuteScriptAndExtractString(
44 the_browser->web_contents(), 44 the_browser->web_contents(),
45 "window.domAutomationController.send(getLog())", 45 "window.domAutomationController.send(getLog())",
46 &js_result)); 46 &js_result));
47 FAIL() << "Failed: " << js_result; 47 FAIL() << "Failed: " << js_result;
48 } 48 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) { 85 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) {
86 SimpleTest(GetTestUrl("fileapi", "create_test.html")); 86 SimpleTest(GetTestUrl("fileapi", "create_test.html"));
87 } 87 }
88 88
89 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) { 89 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) {
90 SimpleTest(GetTestUrl("fileapi", "quota_test.html")); 90 SimpleTest(GetTestUrl("fileapi", "quota_test.html"));
91 } 91 }
92 92
93 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/file_metadata_unittest_linux.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698