| OLD | NEW |
| 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 #ifndef EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ | 6 #define EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
| 12 #include "extensions/browser/api/display_source/display_source_connection_delega
te.h" | 12 #include "extensions/browser/api/display_source/display_source_connection_delega
te.h" |
| 13 #include "extensions/browser/api/display_source/display_source_connection_delega
te_factory.h" | 13 #include "extensions/browser/api/display_source/display_source_connection_delega
te_factory.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 // This functions sets up a mock connection delegate which | 17 // This functions sets up a mock connection delegate which |
| 18 // simulates having of one sink device from the beginning with the properties: | 18 // simulates having of one sink device from the beginning with the properties: |
| 19 // name is "sink 1", id is '1', auth.method is 'PIN', PIN value is '1234'. | 19 // name is "sink 1", id is '1', auth.method is 'PIN', PIN value is '1234'. |
| 20 // Calling of "StartWatchingAvailableSinks" will add one more sink device, | 20 // Calling of "StartWatchingAvailableSinks" will add one more sink device, |
| 21 // its properties are: name is "sink 2", id is '2', auth.method is 'PBC'. | 21 // its properties are: name is "sink 2", id is '2', auth.method is 'PBC'. |
| 22 void InitMockDisplaySourceConnectionDelegate(content::BrowserContext* profile); | 22 void InitMockDisplaySourceConnectionDelegate(content::BrowserContext* profile); |
| 23 | 23 |
| 24 } // namespace extensions | 24 } // namespace extensions |
| 25 | 25 |
| 26 #endif // EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ | 26 #endif // EXTENSIONS_BROWSER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_APITESTBASE_H_ |
| OLD | NEW |