diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-10-06 18:56:55 -0700 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2021-10-11 19:12:50 +0000 |
commit | df3c1952fc17d4867e303857d23b96472514f575 (patch) | |
tree | 8bd44265ac38748a697f1071ab19328f3e18240c /download_action_android_unittest.cc | |
parent | 0af0122ba70c6eed640d9dffba1b1e9b9c62874b (diff) | |
download | update_engine-df3c1952fc17d4867e303857d23b96472514f575.tar.gz |
Move unittest constants to header
Allows unittests to easly access these constants w/o having to declare
extern const char* bla;
Test: th
Change-Id: I0bf6637430104c3d621277a725721ca61c6ac544
Diffstat (limited to 'download_action_android_unittest.cc')
-rw-r--r-- | download_action_android_unittest.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/download_action_android_unittest.cc b/download_action_android_unittest.cc index fef2d24d..0f7ecdcc 100644 --- a/download_action_android_unittest.cc +++ b/download_action_android_unittest.cc @@ -32,6 +32,7 @@ #include "update_engine/common/mock_action_processor.h" #include "update_engine/common/mock_http_fetcher.h" #include "update_engine/common/mock_prefs.h" +#include "update_engine/common/testing_constants.h" #include "update_engine/common/test_utils.h" #include "update_engine/common/utils.h" #include "update_engine/payload_consumer/install_plan.h" @@ -46,9 +47,6 @@ using testing::DoAll; using testing::Return; using testing::SetArgPointee; -extern const char* kUnittestPrivateKeyPath; -extern const char* kUnittestPublicKeyPath; - class DownloadActionTest : public ::testing::Test { public: static constexpr int64_t METADATA_SIZE = 1024; |