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

Side by Side Diff: Source/web/tests/PrerenderingTest.cpp

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/PopupMenuTest.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include <functional> 46 #include <functional>
47 #include <gtest/gtest.h> 47 #include <gtest/gtest.h>
48 #include <list> 48 #include <list>
49 #include "public/platform/Platform.h" 49 #include "public/platform/Platform.h"
50 #include "public/platform/WebPrerender.h" 50 #include "public/platform/WebPrerender.h"
51 #include "public/platform/WebPrerenderingSupport.h" 51 #include "public/platform/WebPrerenderingSupport.h"
52 #include "public/platform/WebString.h" 52 #include "public/platform/WebString.h"
53 #include "public/platform/WebUnitTestSupport.h" 53 #include "public/platform/WebUnitTestSupport.h"
54 #include "wtf/OwnPtr.h" 54 #include "wtf/OwnPtr.h"
55 55
56 using namespace WebKit; 56 using namespace blink;
57 using WebKit::URLTestHelpers::toKURL; 57 using blink::URLTestHelpers::toKURL;
58 58
59 namespace { 59 namespace {
60 60
61 WebURL toWebURL(const char* url) 61 WebURL toWebURL(const char* url)
62 { 62 {
63 return WebURL(toKURL(url)); 63 return WebURL(toKURL(url));
64 } 64 }
65 65
66 class TestPrerendererClient : public WebPrerendererClient { 66 class TestPrerendererClient : public WebPrerendererClient {
67 public: 67 public:
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 EXPECT_EQ(0u, prerenderingSupport()->cancelCount(webPrerender)); 485 EXPECT_EQ(0u, prerenderingSupport()->cancelCount(webPrerender));
486 EXPECT_EQ(1u, prerenderingSupport()->totalCount()); 486 EXPECT_EQ(1u, prerenderingSupport()->totalCount());
487 487
488 // Change the rel of this prerender, make sure this is treated as a remove. 488 // Change the rel of this prerender, make sure this is treated as a remove.
489 executeScript("mutateRel()"); 489 executeScript("mutateRel()");
490 EXPECT_EQ(1u, prerenderingSupport()->cancelCount(webPrerender)); 490 EXPECT_EQ(1u, prerenderingSupport()->cancelCount(webPrerender));
491 EXPECT_EQ(2u, prerenderingSupport()->totalCount()); 491 EXPECT_EQ(2u, prerenderingSupport()->totalCount());
492 } 492 }
493 493
494 } // namespace 494 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/PopupMenuTest.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698