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

Side by Side Diff: components/update_client/updater_state_unittest.cc

Issue 2655813002: Include build/build_config.h in all component updater files. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « components/update_client/updater_state.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h" 5 #include "base/macros.h"
6 #include "base/time/time.h" 6 #include "base/time/time.h"
7 #include "base/version.h" 7 #include "base/version.h"
8 #include "build/build_config.h"
8 #include "components/update_client/updater_state.h" 9 #include "components/update_client/updater_state.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace update_client { 12 namespace update_client {
12 13
13 class UpdaterStateTest : public testing::Test { 14 class UpdaterStateTest : public testing::Test {
14 public: 15 public:
15 UpdaterStateTest() {} 16 UpdaterStateTest() {}
16 ~UpdaterStateTest() override {} 17 ~UpdaterStateTest() override {}
17 18
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 updater_state.update_policy_ = 0; 100 updater_state.update_policy_ = 0;
100 attributes = updater_state.BuildAttributes(); 101 attributes = updater_state.BuildAttributes();
101 EXPECT_STREQ("0", attributes.at("updatepolicy").c_str()); 102 EXPECT_STREQ("0", attributes.at("updatepolicy").c_str());
102 103
103 updater_state.update_policy_ = -1; 104 updater_state.update_policy_ = -1;
104 attributes = updater_state.BuildAttributes(); 105 attributes = updater_state.BuildAttributes();
105 EXPECT_STREQ("-1", attributes.at("updatepolicy").c_str()); 106 EXPECT_STREQ("-1", attributes.at("updatepolicy").c_str());
106 } 107 }
107 108
108 } // namespace update_client 109 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/updater_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698