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

Unified Diff: chrome/browser/extensions/api/usb/usb_api.h

Issue 10824298: Adding tests for USB extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/usb/usb_api.h
diff --git a/chrome/browser/extensions/api/usb/usb_api.h b/chrome/browser/extensions/api/usb/usb_api.h
index 9b46bd32bc93ae37a5e1f36b6d8f2e344beeb95c..93f6b3711bbf29497de343a4cf641ad29742a2c5 100644
--- a/chrome/browser/extensions/api/usb/usb_api.h
+++ b/chrome/browser/extensions/api/usb/usb_api.h
@@ -11,6 +11,8 @@
#include "chrome/browser/extensions/api/api_resource_manager.h"
#include "chrome/common/extensions/api/experimental_usb.h"
+class UsbDevice;
+
namespace extensions {
class ApiResourceEventNotifier;
@@ -34,6 +36,8 @@ class UsbFindDeviceFunction : public UsbAsyncApiFunction {
UsbFindDeviceFunction();
+ static void SetDeviceForTest(UsbDevice* device);
+
protected:
virtual ~UsbFindDeviceFunction();
virtual bool Prepare() OVERRIDE;
@@ -41,6 +45,8 @@ class UsbFindDeviceFunction : public UsbAsyncApiFunction {
virtual bool Respond() OVERRIDE;
private:
+ static UsbDevice* device_for_test_;
asargent_no_longer_on_chrome 2012/08/14 22:31:06 nit: can this just be declared/defined in the .cc
+
scoped_ptr<extensions::api::experimental_usb::FindDevice::Params> parameters_;
ApiResourceEventNotifier* event_notifier_;
};
« no previous file with comments | « no previous file | chrome/browser/extensions/api/usb/usb_api.cc » ('j') | chrome/browser/extensions/api/usb/usb_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698