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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 1740843002: Revert of Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ~TestingPlatformSupport() override; 113 ~TestingPlatformSupport() override;
114 114
115 // Platform: 115 // Platform:
116 WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) overrid e; 116 WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) overrid e;
117 WebString defaultLocale() override; 117 WebString defaultLocale() override;
118 WebCompositorSupport* compositorSupport() override; 118 WebCompositorSupport* compositorSupport() override;
119 WebThread* currentThread() override; 119 WebThread* currentThread() override;
120 WebUnitTestSupport* unitTestSupport() override; 120 WebUnitTestSupport* unitTestSupport() override;
121 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* n ame) override {} 121 void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* n ame) override {}
122 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {} 122 void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) override {}
123 void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle) override;
124 123
125 protected: 124 protected:
126 const Config m_config; 125 const Config m_config;
127 Platform* const m_oldPlatform; 126 Platform* const m_oldPlatform;
128 }; 127 };
129 128
130 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { 129 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport {
131 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); 130 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler);
132 public: 131 public:
133 TestingPlatformSupportWithMockScheduler(); 132 TestingPlatformSupportWithMockScheduler();
134 explicit TestingPlatformSupportWithMockScheduler(const Config&); 133 explicit TestingPlatformSupportWithMockScheduler(const Config&);
135 ~TestingPlatformSupportWithMockScheduler() override; 134 ~TestingPlatformSupportWithMockScheduler() override;
136 135
137 // Platform: 136 // Platform:
138 WebThread* currentThread() override; 137 WebThread* currentThread() override;
139 TestingPlatformMockScheduler* mockWebScheduler(); 138 TestingPlatformMockScheduler* mockWebScheduler();
140 139
141 protected: 140 protected:
142 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; 141 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread;
143 }; 142 };
144 143
145 } // namespace blink 144 } // namespace blink
146 145
147 #endif // TestingPlatformSupport_h 146 #endif // TestingPlatformSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698