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

Side by Side Diff: chrome/browser/media/test_license_server.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_
6 #define CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_ 6 #define CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/process/process.h" 11 #include "base/process/process.h"
11 12
12 class TestLicenseServerConfig; 13 class TestLicenseServerConfig;
13 14
14 // Class used to start a test license server. 15 // Class used to start a test license server.
15 class TestLicenseServer { 16 class TestLicenseServer {
16 public: 17 public:
17 explicit TestLicenseServer(scoped_ptr<TestLicenseServerConfig> server_config); 18 explicit TestLicenseServer(scoped_ptr<TestLicenseServerConfig> server_config);
18 ~TestLicenseServer(); 19 ~TestLicenseServer();
19 20
20 // Returns true if the server started successfully. False otherwise. 21 // Returns true if the server started successfully. False otherwise.
21 bool Start(); 22 bool Start();
22 // Returns true if the server was stopped successfully. False otherwise. 23 // Returns true if the server was stopped successfully. False otherwise.
23 bool Stop(); 24 bool Stop();
24 // Returns a string containing the URL and port the server is listening to. 25 // Returns a string containing the URL and port the server is listening to.
25 std::string GetServerURL(); 26 std::string GetServerURL();
26 27
27 private: 28 private:
28 // License server configuration class used to obtain server paths, etc. 29 // License server configuration class used to obtain server paths, etc.
29 scoped_ptr<TestLicenseServerConfig> server_config_; 30 scoped_ptr<TestLicenseServerConfig> server_config_;
30 // Process for the license server. 31 // Process for the license server.
31 base::Process license_server_process_; 32 base::Process license_server_process_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(TestLicenseServer); 34 DISALLOW_COPY_AND_ASSIGN(TestLicenseServer);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_ 37 #endif // CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/test_helper.h ('k') | chrome/browser/media/test_license_server_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698