[bt][att] Finish migrating att::kTransactionTimeout to pw_chrono

Bug: 100594
Test: fx test bt-host-att-tests
Change-Id: Iafb625308e6949a02aa85e5fa2562b0cb0f1351f
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/917012
Fuchsia-Auto-Submit: Ben Lawson <benlawson@google.com>
Reviewed-by: Ali Saeed <saeedali@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/pw_bluetooth_sapphire/host/att/att.h b/pw_bluetooth_sapphire/host/att/att.h
index e1b5802..7540dc8 100644
--- a/pw_bluetooth_sapphire/host/att/att.h
+++ b/pw_bluetooth_sapphire/host/att/att.h
@@ -9,7 +9,6 @@
 #include <cstdint>
 #include <type_traits>
 
-#include "lib/zx/time.h"
 #include "src/connectivity/bluetooth/core/bt-host/common/macros.h"
 #include "src/connectivity/bluetooth/core/bt-host/common/uint128.h"
 #include "src/connectivity/bluetooth/core/bt-host/hci-spec/constants.h"
@@ -30,8 +29,7 @@
 
 // The ATT protocol transaction timeout.
 // (see v5.0, Vol 3, Part F, Section 3.3.3).
-constexpr zx::duration kTransactionTimeout = zx::sec(30);
-constexpr pw::chrono::SystemClock::duration kPwTransactionTimeout = std::chrono::seconds(30);
+constexpr pw::chrono::SystemClock::duration kTransactionTimeout = std::chrono::seconds(30);
 
 // A server identifies each attribute using a 16-bit handle.
 using Handle = uint16_t;
diff --git a/pw_bluetooth_sapphire/host/att/bearer.cc b/pw_bluetooth_sapphire/host/att/bearer.cc
index 3fd2467..7a60bfd 100644
--- a/pw_bluetooth_sapphire/host/att/bearer.cc
+++ b/pw_bluetooth_sapphire/host/att/bearer.cc
@@ -511,7 +511,7 @@
           ShutDownInternal(/*due_to_timeout=*/true);
         }
       },
-      kPwTransactionTimeout);
+      kTransactionTimeout);
 }
 
 void Bearer::SendErrorResponse(OpCode request_opcode, Handle attribute_handle,
diff --git a/pw_bluetooth_sapphire/host/att/bearer_unittest.cc b/pw_bluetooth_sapphire/host/att/bearer_unittest.cc
index e5c495e..1a32378 100644
--- a/pw_bluetooth_sapphire/host/att/bearer_unittest.cc
+++ b/pw_bluetooth_sapphire/host/att/bearer_unittest.cc
@@ -140,7 +140,7 @@
   EXPECT_PACKET_OUT(*request);
   bearer()->StartTransaction(std::move(request), cb);
 
-  RunFor(kPwTransactionTimeout);
+  RunFor(kTransactionTimeout);
 
   EXPECT_TRUE(closed);
   EXPECT_TRUE(err_cb_called);
@@ -186,7 +186,7 @@
   EXPECT_EQ(0u, err_cb_count);
 
   // Make the request timeout.
-  RunFor(kPwTransactionTimeout);
+  RunFor(kTransactionTimeout);
 
   EXPECT_TRUE(closed);
   EXPECT_EQ(kTransactionCount, err_cb_count);
@@ -214,7 +214,7 @@
   EXPECT_PACKET_OUT(*request);
   bearer()->StartTransaction(std::move(request), cb);
 
-  RunFor(kPwTransactionTimeout);
+  RunFor(kTransactionTimeout);
 
   EXPECT_TRUE(closed);
   EXPECT_TRUE(err_cb_called);
@@ -262,7 +262,7 @@
   EXPECT_EQ(0u, err_cb_count);
 
   // Make the request timeout.
-  RunFor(kPwTransactionTimeout);
+  RunFor(kTransactionTimeout);
 
   EXPECT_TRUE(closed);
   EXPECT_EQ(kTransactionCount, err_cb_count);