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

Side by Side Diff: device/test/usb_test_gadget.h

Issue 601073002: Move string descriptor getters from UsbDeviceHandle to UsbDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 DEVICE_TEST_USB_TEST_GADGET_H_ 5 #ifndef DEVICE_TEST_USB_TEST_GADGET_H_
6 #define DEVICE_TEST_USB_TEST_GADGET_H_ 6 #define DEVICE_TEST_USB_TEST_GADGET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 28
29 static bool IsTestEnabled(); 29 static bool IsTestEnabled();
30 static scoped_ptr<UsbTestGadget> Claim(); 30 static scoped_ptr<UsbTestGadget> Claim();
31 31
32 virtual bool Unclaim() = 0; 32 virtual bool Unclaim() = 0;
33 virtual bool Disconnect() = 0; 33 virtual bool Disconnect() = 0;
34 virtual bool Reconnect() = 0; 34 virtual bool Reconnect() = 0;
35 virtual bool SetType(Type type) = 0; 35 virtual bool SetType(Type type) = 0;
36 36
37 virtual UsbDevice* GetDevice() const = 0; 37 virtual UsbDevice* GetDevice() const = 0;
38 virtual std::string GetSerial() const = 0; 38 virtual std::string GetSerialNumber() const = 0;
39 39
40 protected: 40 protected:
41 UsbTestGadget() {} 41 UsbTestGadget() {}
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(UsbTestGadget); 44 DISALLOW_COPY_AND_ASSIGN(UsbTestGadget);
45 }; 45 };
46 46
47 } // namespace device 47 } // namespace device
48 48
49 #endif // DEVICE_TEST_USB_TEST_GADGET_H_ 49 #endif // DEVICE_TEST_USB_TEST_GADGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698