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

Side by Side Diff: extensions/renderer/bindings/api_request_handler_unittest.cc

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "extensions/renderer/api_request_handler.h"
6 #include "base/bind.h" 5 #include "base/bind.h"
7 #include "base/memory/ptr_util.h" 6 #include "base/memory/ptr_util.h"
8 #include "base/optional.h" 7 #include "base/optional.h"
9 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
10 #include "base/values.h" 9 #include "base/values.h"
11 #include "extensions/renderer/api_binding_test.h" 10 #include "extensions/renderer/bindings/api_binding_test.h"
12 #include "extensions/renderer/api_binding_test_util.h" 11 #include "extensions/renderer/bindings/api_binding_test_util.h"
12 #include "extensions/renderer/bindings/api_request_handler.h"
13 #include "gin/converter.h" 13 #include "gin/converter.h"
14 #include "gin/function_template.h" 14 #include "gin/function_template.h"
15 #include "gin/public/context_holder.h" 15 #include "gin/public/context_holder.h"
16 #include "gin/public/isolate_holder.h" 16 #include "gin/public/isolate_holder.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" 18 #include "third_party/WebKit/public/web/WebScopedUserGesture.h"
19 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" 19 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
20 20
21 namespace extensions { 21 namespace extensions {
22 22
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 std::string()); 479 std::string());
480 480
481 EXPECT_EQ(ReplaceSingleQuotes(kArguments), 481 EXPECT_EQ(ReplaceSingleQuotes(kArguments),
482 GetStringPropertyFromObject(context->Global(), context, "result")); 482 GetStringPropertyFromObject(context->Global(), context, "result"));
483 483
484 EXPECT_TRUE(request_handler.GetPendingRequestIdsForTesting().empty()); 484 EXPECT_TRUE(request_handler.GetPendingRequestIdsForTesting().empty());
485 EXPECT_FALSE(dispatched_request); 485 EXPECT_FALSE(dispatched_request);
486 } 486 }
487 487
488 } // namespace extensions 488 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_request_handler.cc ('k') | extensions/renderer/bindings/api_signature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698