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

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

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO comment. Created 4 years, 10 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 explicit TestingPlatformSupport(const Config&); 111 explicit TestingPlatformSupport(const Config&);
112 112
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 connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle) override;
121 122
122 protected: 123 protected:
123 const Config m_config; 124 const Config m_config;
124 Platform* const m_oldPlatform; 125 Platform* const m_oldPlatform;
125 }; 126 };
126 127
127 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { 128 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport {
128 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); 129 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler);
129 public: 130 public:
130 TestingPlatformSupportWithMockScheduler(); 131 TestingPlatformSupportWithMockScheduler();
131 explicit TestingPlatformSupportWithMockScheduler(const Config&); 132 explicit TestingPlatformSupportWithMockScheduler(const Config&);
132 ~TestingPlatformSupportWithMockScheduler() override; 133 ~TestingPlatformSupportWithMockScheduler() override;
133 134
134 // Platform: 135 // Platform:
135 WebThread* currentThread() override; 136 WebThread* currentThread() override;
136 TestingPlatformMockScheduler* mockWebScheduler(); 137 TestingPlatformMockScheduler* mockWebScheduler();
137 138
138 protected: 139 protected:
139 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; 140 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread;
140 }; 141 };
141 142
142 } // namespace blink 143 } // namespace blink
143 144
144 #endif // TestingPlatformSupport_h 145 #endif // TestingPlatformSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698