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

Unified Diff: blimp/net/blimp_stats_unittest.cc

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/blimp_stats.cc ('k') | blimp/net/blimp_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_stats_unittest.cc
diff --git a/blimp/net/blimp_stats_unittest.cc b/blimp/net/blimp_stats_unittest.cc
deleted file mode 100644
index c58a2828b9986e9a39c016b266545cfaaff82287..0000000000000000000000000000000000000000
--- a/blimp/net/blimp_stats_unittest.cc
+++ /dev/null
@@ -1,40 +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.
-
-#include <limits>
-
-#include "base/at_exit.h"
-#include "base/macros.h"
-#include "blimp/net/blimp_stats.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blimp {
-
-class BlimpStatsTest : public testing::Test {
- public:
- BlimpStatsTest() {}
- ~BlimpStatsTest() override {}
-
- private:
- base::ShadowingAtExitManager at_exit_manager_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpStatsTest);
-};
-
-TEST_F(BlimpStatsTest, AddStatsAndVerify) {
- EXPECT_EQ(0, BlimpStats::GetInstance()->Get(BlimpStats::BYTES_SENT));
- EXPECT_EQ(0, BlimpStats::GetInstance()->Get(BlimpStats::BYTES_RECEIVED));
- EXPECT_EQ(0, BlimpStats::GetInstance()->Get(BlimpStats::COMMIT));
-
- BlimpStats::GetInstance()->Add(BlimpStats::BYTES_SENT, 10);
- BlimpStats::GetInstance()->Add(BlimpStats::BYTES_SENT, 20);
- BlimpStats::GetInstance()->Add(BlimpStats::BYTES_RECEIVED, 5);
- BlimpStats::GetInstance()->Add(BlimpStats::COMMIT, 1);
-
- EXPECT_EQ(30, BlimpStats::GetInstance()->Get(BlimpStats::BYTES_SENT));
- EXPECT_EQ(5, BlimpStats::GetInstance()->Get(BlimpStats::BYTES_RECEIVED));
- EXPECT_EQ(1, BlimpStats::GetInstance()->Get(BlimpStats::COMMIT));
-}
-
-} // namespace blimp
« no previous file with comments | « blimp/net/blimp_stats.cc ('k') | blimp/net/blimp_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698