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

Unified Diff: content/browser/background_sync/background_sync_manager_unittest.cc

Issue 1771743002: Move geolocation and permission mojoms into WebKit/public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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: content/browser/background_sync/background_sync_manager_unittest.cc
diff --git a/content/browser/background_sync/background_sync_manager_unittest.cc b/content/browser/background_sync/background_sync_manager_unittest.cc
index 90172175cb019d01ca98eb6a5ad2ac38a5ff6664..02961f44a695bbd7955baa61e8308134cf2d27b0 100644
--- a/content/browser/background_sync/background_sync_manager_unittest.cc
+++ b/content/browser/background_sync/background_sync_manager_unittest.cc
@@ -28,7 +28,6 @@
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/background_sync_parameters.h"
#include "content/public/browser/permission_type.h"
-#include "content/public/common/permission_status.mojom.h"
#include "content/public/test/background_sync_test_util.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -38,6 +37,7 @@
#include "net/base/network_change_notifier.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h"
namespace content {
@@ -127,7 +127,7 @@ class BackgroundSyncManagerTest : public testing::Test {
new testing::NiceMock<MockPermissionManager>());
ON_CALL(*mock_permission_manager,
GetPermissionStatus(PermissionType::BACKGROUND_SYNC, _, _))
- .WillByDefault(Return(mojom::PermissionStatus::GRANTED));
+ .WillByDefault(Return(blink::mojom::PermissionStatus::GRANTED));
helper_->browser_context()->SetPermissionManager(
std::move(mock_permission_manager));
@@ -469,7 +469,7 @@ TEST_F(BackgroundSyncManagerTest, RegisterPermissionDenied) {
EXPECT_CALL(*mock_permission_manager,
GetPermissionStatus(PermissionType::BACKGROUND_SYNC,
expected_origin, expected_origin))
- .WillOnce(testing::Return(mojom::PermissionStatus::DENIED));
+ .WillOnce(testing::Return(blink::mojom::PermissionStatus::DENIED));
EXPECT_FALSE(Register(sync_options_1_));
}
@@ -480,7 +480,7 @@ TEST_F(BackgroundSyncManagerTest, RegisterPermissionGranted) {
EXPECT_CALL(*mock_permission_manager,
GetPermissionStatus(PermissionType::BACKGROUND_SYNC,
expected_origin, expected_origin))
- .WillOnce(testing::Return(mojom::PermissionStatus::GRANTED));
+ .WillOnce(testing::Return(blink::mojom::PermissionStatus::GRANTED));
EXPECT_TRUE(Register(sync_options_1_));
}

Powered by Google App Engine
This is Rietveld 408576698