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

Side by Side Diff: third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp

Issue 2879773002: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules (Closed)
Patch Set: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "InternalsNavigatorContentUtils.h" 5 #include "InternalsNavigatorContentUtils.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/frame/LocalDOMWindow.h" 8 #include "core/frame/LocalDOMWindow.h"
9 #include "core/testing/Internals.h" 9 #include "core/testing/Internals.h"
10 #include "modules/navigatorcontentutils/NavigatorContentUtils.h" 10 #include "modules/navigatorcontentutils/NavigatorContentUtils.h"
11 #include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock. h" 11 #include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock. h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock( 15 void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(
16 Internals&, 16 Internals&,
17 Document* document) { 17 Document* document) {
18 ASSERT(document && document->GetPage()); 18 DCHECK(document);
19 DCHECK(document->GetPage());
19 NavigatorContentUtils* navigator_content_utils = 20 NavigatorContentUtils* navigator_content_utils =
20 NavigatorContentUtils::From(*document->domWindow()->navigator()); 21 NavigatorContentUtils::From(*document->domWindow()->navigator());
21 navigator_content_utils->SetClientForTest( 22 navigator_content_utils->SetClientForTest(
22 NavigatorContentUtilsClientMock::Create()); 23 NavigatorContentUtilsClientMock::Create());
23 } 24 }
24 25
25 } // namespace blink 26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698