OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/extensions/api/gcd_private/privet_v3_session.h" | 5 #include "chrome/browser/extensions/api/gcd_private/privet_v3_session.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" | 10 #include "chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h" |
11 #include "content/public/test/test_browser_thread_bundle.h" | 11 #include "content/public/test/test_browser_thread_bundle.h" |
12 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
13 #include "crypto/hmac.h" | 13 #include "crypto/hmac.h" |
14 #include "crypto/p224_spake.h" | 14 #include "crypto/p224_spake.h" |
15 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
16 #include "net/url_request/test_url_fetcher_factory.h" | 16 #include "net/url_request/test_url_fetcher_factory.h" |
17 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 331 |
332 base::DictionaryValue input; | 332 base::DictionaryValue input; |
333 input.SetString("id", id); | 333 input.SetString("id", id); |
334 session_->SendMessage( | 334 session_->SendMessage( |
335 "/privet/v3/commands/status", input, | 335 "/privet/v3/commands/status", input, |
336 base::Bind(&PrivetV3SessionTest::OnMessageSend, base::Unretained(this))); | 336 base::Bind(&PrivetV3SessionTest::OnMessageSend, base::Unretained(this))); |
337 base::RunLoop().RunUntilIdle(); | 337 base::RunLoop().RunUntilIdle(); |
338 } | 338 } |
339 | 339 |
340 } // namespace extensions | 340 } // namespace extensions |
OLD | NEW |