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

Side by Side Diff: third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp

Issue 2799593002: Rewrite references to "wtf/" to "platform/wtf/" in platform/network. (Closed)
Patch Set: 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 /* 1 /*
2 * Copyright (c) 2014, Google Inc. All rights reserved. 2 * Copyright (c) 2014, 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "platform/network/NetworkStateNotifier.h" 31 #include "platform/network/NetworkStateNotifier.h"
32 32
33 #include "platform/scheduler/test/fake_web_task_runner.h" 33 #include "platform/scheduler/test/fake_web_task_runner.h"
34 #include "platform/testing/UnitTestHelpers.h" 34 #include "platform/testing/UnitTestHelpers.h"
35 #include "platform/wtf/Functional.h"
35 #include "public/platform/Platform.h" 36 #include "public/platform/Platform.h"
36 #include "public/platform/WebConnectionType.h" 37 #include "public/platform/WebConnectionType.h"
37 #include "public/platform/WebThread.h" 38 #include "public/platform/WebThread.h"
38 #include "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
39 #include "wtf/Functional.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 using scheduler::FakeWebTaskRunner; 43 using scheduler::FakeWebTaskRunner;
44 44
45 namespace { 45 namespace {
46 const double kNoneMaxBandwidthMbps = 0.0; 46 const double kNoneMaxBandwidthMbps = 0.0;
47 const double kBluetoothMaxBandwidthMbps = 1.0; 47 const double kBluetoothMaxBandwidthMbps = 1.0;
48 const double kEthernetMaxBandwidthMbps = 2.0; 48 const double kEthernetMaxBandwidthMbps = 2.0;
49 } 49 }
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 EXPECT_TRUE(verifyObservations(observer2, WebConnectionTypeEthernet, 484 EXPECT_TRUE(verifyObservations(observer2, WebConnectionTypeEthernet,
485 kEthernetMaxBandwidthMbps)); 485 kEthernetMaxBandwidthMbps));
486 EXPECT_EQ(observer1.callbackCount(), 3); 486 EXPECT_EQ(observer1.callbackCount(), 3);
487 EXPECT_EQ(observer2.callbackCount(), 4); 487 EXPECT_EQ(observer2.callbackCount(), 4);
488 488
489 m_notifier.removeConnectionObserver(&observer1, getTaskRunner()); 489 m_notifier.removeConnectionObserver(&observer1, getTaskRunner());
490 m_notifier.removeConnectionObserver(&observer2, getTaskRunner()); 490 m_notifier.removeConnectionObserver(&observer2, getTaskRunner());
491 } 491 }
492 492
493 } // namespace blink 493 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698