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

Unified Diff: blimp/helium/mock_objects.h

Issue 2602103002: Delete blimp/helium and remove references to it from dependent targets (Closed)
Patch Set: . Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/helium/lww_register_unittest.cc ('k') | blimp/helium/mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/helium/mock_objects.h
diff --git a/blimp/helium/mock_objects.h b/blimp/helium/mock_objects.h
deleted file mode 100644
index 0e427acd2e33ecdde6745a3a03159b3d9a87f3f6..0000000000000000000000000000000000000000
--- a/blimp/helium/mock_objects.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_HELIUM_MOCK_OBJECTS_H_
-#define BLIMP_HELIUM_MOCK_OBJECTS_H_
-
-#include "base/memory/ptr_util.h"
-#include "blimp/helium/serializable_struct.h"
-#include "blimp/helium/syncable.h"
-#include "blimp/helium/update_scheduler.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace blimp {
-namespace helium {
-
-struct TestSyncableChangeset : public SerializableStruct {
- TestSyncableChangeset();
- ~TestSyncableChangeset() override;
-
- TestSyncableChangeset& operator=(const TestSyncableChangeset& other);
-
- Field<int32_t> value;
-};
-
-class MockSyncable : public LazySyncable<TestSyncableChangeset> {
- public:
- MockSyncable();
- ~MockSyncable() override;
-
- MOCK_CONST_METHOD1(CreateChangesetMock, TestSyncableChangeset*(Revision));
- MOCK_METHOD1(ApplyChangeset, void(const TestSyncableChangeset&));
- MOCK_CONST_METHOD1(ValidateChangeset, bool(const TestSyncableChangeset&));
- MOCK_METHOD1(ReleaseBefore, void(Revision));
- MOCK_CONST_METHOD0(GetRevision, Revision());
- MOCK_METHOD2(PrepareToCreateChangeset, void(Revision, base::Closure));
- MOCK_METHOD1(SetLocalUpdateCallback, void(const base::Closure&));
-
- std::unique_ptr<TestSyncableChangeset> CreateChangeset(Revision from) const;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockSyncable);
-};
-
-class MockStreamPump : public StreamPump {
- public:
- MockStreamPump();
- ~MockStreamPump() override;
-
- MOCK_METHOD0(OnMessageAvailable, void());
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockStreamPump);
-};
-
-} // namespace helium
-} // namespace blimp
-#endif // BLIMP_HELIUM_MOCK_OBJECTS_H_
« no previous file with comments | « blimp/helium/lww_register_unittest.cc ('k') | blimp/helium/mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698