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

Unified Diff: extensions/browser/api/serial/serial_apitest.cc

Issue 555633003: Use extensions::ResultCatcher; delete ExtensionApiTest::ResultCatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « extensions/browser/api/runtime/runtime_apitest.cc ('k') | extensions/test/result_catcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/serial/serial_apitest.cc
diff --git a/extensions/browser/api/serial/serial_apitest.cc b/extensions/browser/api/serial/serial_apitest.cc
index 22089c9cfbd1a958c975f783fa74ae41484e0fb0..db7617a0563d4cb86c3f8ea2c6f83293a9182551 100644
--- a/extensions/browser/api/serial/serial_apitest.cc
+++ b/extensions/browser/api/serial/serial_apitest.cc
@@ -10,6 +10,7 @@
#include "extensions/browser/api/serial/serial_connection.h"
#include "extensions/browser/extension_function.h"
#include "extensions/common/api/serial.h"
+#include "extensions/test/result_catcher.h"
#include "testing/gmock/include/gmock/gmock.h"
using testing::_;
@@ -114,8 +115,8 @@ ExtensionFunction* FakeSerialConnectFunctionFactory() {
//
#define SIMULATE_SERIAL_PORTS (1)
IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialFakeHardware) {
- ResultCatcher catcher;
- catcher.RestrictToProfile(browser()->profile());
+ extensions::ResultCatcher catcher;
+ catcher.RestrictToBrowserContext(browser()->profile());
#if SIMULATE_SERIAL_PORTS
ASSERT_TRUE(extensions::ExtensionFunctionDispatcher::OverrideFunction(
@@ -128,8 +129,8 @@ IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialFakeHardware) {
}
IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialRealHardware) {
- ResultCatcher catcher;
- catcher.RestrictToProfile(browser()->profile());
+ extensions::ResultCatcher catcher;
+ catcher.RestrictToBrowserContext(browser()->profile());
ASSERT_TRUE(RunExtensionTest("serial/real_hardware")) << message_;
}
« no previous file with comments | « extensions/browser/api/runtime/runtime_apitest.cc ('k') | extensions/test/result_catcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698