update_engine: Standarize mock/fake filenames.
Mock classes implement mostly MOCK_METHOD* methods used with gmock.
Those classes should be named with the prefix "Mock" in the class
name and "mock_" in the header filename.
Fake classes implement a working version of the interface they provide,
often with extra functionality to change their behavior. Those classes
should be prefixed with "Fake" in the class name and "fake_" in the
file name.
Other minor include order fixes are included in this patch.
BUG=None
TEST=Unittest still pass.
Change-Id: I23de7cb11e25182d5855afacca47d431c97b82bb
Reviewed-on: https://chromium-review.googlesource.com/227779
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/certificate_checker_unittest.cc b/certificate_checker_unittest.cc
index 7ac2830..d75b543 100644
--- a/certificate_checker_unittest.cc
+++ b/certificate_checker_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "update_engine/certificate_checker.h"
+
#include <string>
#include <base/strings/string_util.h>
@@ -10,11 +12,10 @@
#include <gtest/gtest.h>
#include <metrics/metrics_library_mock.h>
-#include "update_engine/certificate_checker.h"
-#include "update_engine/certificate_checker_mock.h"
#include "update_engine/constants.h"
#include "update_engine/fake_system_state.h"
-#include "update_engine/prefs_mock.h"
+#include "update_engine/mock_certificate_checker.h"
+#include "update_engine/mock_prefs.h"
using ::testing::DoAll;
using ::testing::Return;
@@ -55,8 +56,8 @@
virtual void TearDown() {}
FakeSystemState fake_system_state_;
- PrefsMock* prefs_; // shortcut to fake_system_state_.mock_prefs()
- OpenSSLWrapperMock openssl_wrapper_;
+ MockPrefs* prefs_; // shortcut to fake_system_state_.mock_prefs()
+ MockOpenSSLWrapper openssl_wrapper_;
// Parameters of our mock certificate digest.
int depth_;
unsigned int length_;