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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 "core/css/MediaQueryEvaluator.h" 5 #include "core/css/MediaQueryEvaluator.h"
6 6
7 #include <memory>
7 #include "core/MediaTypeNames.h" 8 #include "core/MediaTypeNames.h"
8 #include "core/css/MediaList.h" 9 #include "core/css/MediaList.h"
9 #include "core/css/MediaValuesCached.h" 10 #include "core/css/MediaValuesCached.h"
10 #include "core/css/MediaValuesInitialViewport.h" 11 #include "core/css/MediaValuesInitialViewport.h"
11 #include "core/frame/FrameView.h" 12 #include "core/frame/FrameView.h"
12 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
14 #include "platform/wtf/text/StringBuilder.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 #include "wtf/text/StringBuilder.h"
15 #include <memory>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 typedef struct { 19 typedef struct {
20 const char* input; 20 const char* input;
21 const bool output; 21 const bool output;
22 } TestCase; 22 } TestCase;
23 23
24 TestCase g_screen_test_cases[] = { 24 TestCase g_screen_test_cases[] = {
25 {"", 1}, 25 {"", 1},
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 page_holder->GetFrameView().SetInitialViewportSize(IntSize(500, 500)); 227 page_holder->GetFrameView().SetInitialViewportSize(IntSize(500, 500));
228 page_holder->GetFrameView().SetLayoutSize(IntSize(800, 800)); 228 page_holder->GetFrameView().SetLayoutSize(IntSize(800, 800));
229 page_holder->GetFrameView().SetFrameRect(IntRect(0, 0, 800, 800)); 229 page_holder->GetFrameView().SetFrameRect(IntRect(0, 0, 800, 800));
230 230
231 MediaQueryEvaluator media_query_evaluator( 231 MediaQueryEvaluator media_query_evaluator(
232 MediaValuesInitialViewport::Create(page_holder->GetFrame())); 232 MediaValuesInitialViewport::Create(page_holder->GetFrame()));
233 TestMQEvaluator(g_viewport_test_cases, media_query_evaluator); 233 TestMQEvaluator(g_viewport_test_cases, media_query_evaluator);
234 } 234 }
235 235
236 } // namespace blink 236 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryExp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698