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

Unified Diff: remoting/host/it2me/it2me_host_unittest.cc

Issue 2452223002: It2Me Host changes to better support Confirmation Dialog (Closed)
Patch Set: Reordering enum Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_host_unittest.cc
diff --git a/remoting/host/it2me/it2me_host_unittest.cc b/remoting/host/it2me/it2me_host_unittest.cc
index 8b218660db91a7e8728a80003b93d2fc9dd77305..c578985257a9ca65847a00d1673b582939e96d56 100644
--- a/remoting/host/it2me/it2me_host_unittest.cc
+++ b/remoting/host/it2me/it2me_host_unittest.cc
@@ -166,6 +166,16 @@ void It2MeHostTest::RunValidationCallback(const std::string& remote_jid) {
network_task_runner_->PostTask(
FROM_HERE,
+ base::Bind(&It2MeHost::SetStateForTesting, it2me_host_.get(),
+ It2MeHostState::kRequestedAccessCode, std::string()));
+
+ network_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&It2MeHost::SetStateForTesting, it2me_host_.get(),
+ It2MeHostState::kReceivedAccessCode, std::string()));
+
+ network_task_runner_->PostTask(
+ FROM_HERE,
base::Bind(it2me_host_->GetValidationCallbackForTesting(), remote_jid,
base::Bind(&It2MeHostTest::OnValidationComplete,
base::Unretained(this), run_loop.QuitClosure())));
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698