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

Unified Diff: extensions/browser/api/audio/audio_apitest.cc

Issue 2314983002: Remove calls to deprecated MessageLoop methods in extensions. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/audio/audio_apitest.cc
diff --git a/extensions/browser/api/audio/audio_apitest.cc b/extensions/browser/api/audio/audio_apitest.cc
index de089e21dcaf3eda0c9cac0b8c8cc7d0c502ba59..9d5f1c461c5023239121d0d85c216460b39de0a5 100644
--- a/extensions/browser/api/audio/audio_apitest.cc
+++ b/extensions/browser/api/audio/audio_apitest.cc
@@ -6,6 +6,7 @@
#include <stdint.h>
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "build/build_config.h"
#include "extensions/shell/test/shell_apitest.h"
#if defined(OS_CHROMEOS)
@@ -106,14 +107,14 @@ class AudioApiTest : public ShellApiTest {
audio_nodes);
cras_audio_handler_ = chromeos::CrasAudioHandler::Get();
DCHECK(cras_audio_handler_);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void ChangeAudioNodes(const AudioNodeList& audio_nodes) {
DCHECK(fake_cras_audio_client_);
fake_cras_audio_client_->SetAudioNodesAndNotifyObserversForTesting(
audio_nodes);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
protected:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698