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

Side by Side Diff: chrome/browser/extensions/api/serial/serial_apitest.cc

Issue 16915006: Convert most of extensions and some other random stuff to using the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <deque> 5 #include <deque>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/api/serial/serial_api.h" 10 #include "chrome/browser/extensions/api/serial/serial_api.h"
(...skipping 18 matching lines...) Expand all
29 SerialApiTest() {} 29 SerialApiTest() {}
30 }; 30 };
31 31
32 } // namespace 32 } // namespace
33 33
34 namespace extensions { 34 namespace extensions {
35 35
36 class FakeSerialGetPortsFunction : public AsyncExtensionFunction { 36 class FakeSerialGetPortsFunction : public AsyncExtensionFunction {
37 public: 37 public:
38 virtual bool RunImpl() OVERRIDE { 38 virtual bool RunImpl() OVERRIDE {
39 ListValue* ports = new ListValue(); 39 base::ListValue* ports = new base::ListValue();
40 ports->Append(Value::CreateStringValue("/dev/fakeserial")); 40 ports->Append(Value::CreateStringValue("/dev/fakeserial"));
41 ports->Append(Value::CreateStringValue("\\\\COM800\\")); 41 ports->Append(Value::CreateStringValue("\\\\COM800\\"));
42 SetResult(ports); 42 SetResult(ports);
43 SendResponse(true); 43 SendResponse(true);
44 return true; 44 return true;
45 } 45 }
46 protected: 46 protected:
47 virtual ~FakeSerialGetPortsFunction() {} 47 virtual ~FakeSerialGetPortsFunction() {}
48 }; 48 };
49 49
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 ASSERT_TRUE(RunExtensionTest("serial/api")) << message_; 181 ASSERT_TRUE(RunExtensionTest("serial/api")) << message_;
182 } 182 }
183 183
184 IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialRealHardware) { 184 IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialRealHardware) {
185 ResultCatcher catcher; 185 ResultCatcher catcher;
186 catcher.RestrictToProfile(browser()->profile()); 186 catcher.RestrictToProfile(browser()->profile());
187 187
188 ASSERT_TRUE(RunExtensionTest("serial/real_hardware")) << message_; 188 ASSERT_TRUE(RunExtensionTest("serial/real_hardware")) << message_;
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698