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

Side by Side Diff: content/public/test/test_fileapi_operation_waiter.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/public/test/test_fileapi_operation_waiter.h" 5 #include "content/public/test/test_fileapi_operation_waiter.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 30 matching lines...) Expand all
41 context_ = context; 41 context_ = context;
42 base::Closure task = base::Bind( 42 base::Closure task = base::Bind(
43 &storage::SandboxFileSystemBackendDelegate::AddFileUpdateObserver, 43 &storage::SandboxFileSystemBackendDelegate::AddFileUpdateObserver,
44 base::Unretained(context_->sandbox_delegate()), 44 base::Unretained(context_->sandbox_delegate()),
45 storage::kFileSystemTypeTemporary, base::Unretained(this), 45 storage::kFileSystemTypeTemporary, base::Unretained(this),
46 base::RetainedRef( 46 base::RetainedRef(
47 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI))); 47 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)));
48 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, task); 48 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, task);
49 } 49 }
50 50
51 CHECK_EQ(context, context_) << "Multiprofile is not implemented"; 51 // Multiprofile is not implemented
52 CHECK_EQ(context, context_);
52 53
53 observers_.AddObserver(observer); 54 observers_.AddObserver(observer);
54 } 55 }
55 56
56 void RemoveObserver(FileUpdateObserver* observer) { 57 void RemoveObserver(FileUpdateObserver* observer) {
57 DCHECK_CURRENTLY_ON(BrowserThread::UI); 58 DCHECK_CURRENTLY_ON(BrowserThread::UI);
58 observers_.RemoveObserver(observer); 59 observers_.RemoveObserver(observer);
59 } 60 }
60 61
61 // FileUpdateObserver overrides: 62 // FileUpdateObserver overrides:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 105 }
105 106
106 void TestFileapiOperationWaiter::OnUpdate(const FileSystemURL& url, 107 void TestFileapiOperationWaiter::OnUpdate(const FileSystemURL& url,
107 int64_t delta) {} 108 int64_t delta) {}
108 109
109 void TestFileapiOperationWaiter::OnEndUpdate(const FileSystemURL& url) { 110 void TestFileapiOperationWaiter::OnEndUpdate(const FileSystemURL& url) {
110 run_loop_.Quit(); 111 run_loop_.Quit();
111 } 112 }
112 113
113 } // namespace content 114 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698